Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersDJohnson committed Jul 16, 2022
1 parent 171408b commit 7e22b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ module.exports = function(options) {
return config.isListForm ? [] : {};
}

const params = { treePath: [] };
const params = {
treePath: []
};

const results = traverse(config, params);
debug('traversal complete', results);
Expand Down Expand Up @@ -176,7 +178,7 @@ function traverse(config, params) {
const newParams = {
...params,
treePath: [...(params.treePath ? params.treePath : []), config.filename]
}
};

if (localConfig.isListForm) {
for (let item of traverse(localConfig, newParams)) {
Expand Down

0 comments on commit 7e22b7c

Please sign in to comment.