Skip to content

Commit

Permalink
refactor(project): Inline array flattener
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed May 13, 2020
1 parent e74a080 commit 1713635
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/project/lib/make-file-finder.js
Expand Up @@ -58,10 +58,6 @@ function makeFileFinder(rootPath, packageConfigs) {
);

// always flatten the results
return promise.then(flattenResults);
return promise.then(results => results.reduce((acc, result) => acc.concat(result), []));
};
}

function flattenResults(results) {
return results.reduce((acc, result) => acc.concat(result), []);
}

0 comments on commit 1713635

Please sign in to comment.