Skip to content

Commit

Permalink
♻️ use Utils.combine more
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jan 21, 2025
1 parent c6bf3e2 commit 9ae4af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/extensions/decode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ extension _$Decode on QS {
obj = options.allowEmptyLists &&
(leaf == '' || (options.strictNullHandling && leaf == null))
? List<dynamic>.empty(growable: true)
: [if (leaf is Iterable) ...leaf else leaf];
: Utils.combine([], leaf);
} else {
obj = <String, dynamic>{};
final String cleanRoot = root.startsWith('[') && root.endsWith(']')
Expand Down

0 comments on commit 9ae4af9

Please sign in to comment.