From 9ae4af944558eb1b7a2d9ee45bcc8a8191403587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Tue, 21 Jan 2025 22:31:42 +0000 Subject: [PATCH] :recycle: use `Utils.combine` more --- lib/src/extensions/decode.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/extensions/decode.dart b/lib/src/extensions/decode.dart index 27cb01f..4976bf2 100644 --- a/lib/src/extensions/decode.dart +++ b/lib/src/extensions/decode.dart @@ -175,7 +175,7 @@ extension _$Decode on QS { obj = options.allowEmptyLists && (leaf == '' || (options.strictNullHandling && leaf == null)) ? List.empty(growable: true) - : [if (leaf is Iterable) ...leaf else leaf]; + : Utils.combine([], leaf); } else { obj = {}; final String cleanRoot = root.startsWith('[') && root.endsWith(']')