Skip to content

Commit 6e69ada

Browse files
committed
Small cleanups.
- Ensure a param is a boolean for clearer debugging. - Formatting.
1 parent b4eb755 commit 6e69ada

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/expand.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ async function _expandObject({
634634
}
635635
return v;
636636
}),
637-
{propertyIsArray: options.isFrame});
637+
{propertyIsArray: !!options.isFrame});
638638
continue;
639639
}
640640

@@ -775,8 +775,7 @@ async function _expandObject({
775775

776776
expandedValue = await api.expand({
777777
activeCtx,
778-
activeProperty:
779-
'@reverse',
778+
activeProperty: '@reverse',
780779
element: value,
781780
options
782781
});
@@ -881,7 +880,7 @@ async function _expandObject({
881880
});
882881
} else {
883882
// recurse into @list or @set
884-
const isList = (expandedProperty === '@list');
883+
const isList = expandedProperty === '@list';
885884
if(isList || expandedProperty === '@set') {
886885
let nextActiveProperty = activeProperty;
887886
if(isList && expandedActiveProperty === '@graph') {

0 commit comments

Comments
 (0)