Skip to content

Commit 6a24620

Browse files
gkelloggdavidlehn
andcommitted
Update lib/compact.js with @davidlehn suggestion.
Co-Authored-By: David I. Lehn <[email protected]>
1 parent d709341 commit 6a24620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ api.compact = async ({
229229
container.includes('@set') &&
230230
_processingMode(activeCtx, 1.1);
231231
const isArray =
232-
(_isArray(compactedValue) && expandedValue.length === 0) || typeAsSet;
232+
typeAsSet || (_isArray(compactedValue) && expandedValue.length === 0);
233233
_addValue(rval, alias, compactedValue, {propertyIsArray: isArray});
234234
continue;
235235
}

0 commit comments

Comments
 (0)