Skip to content

Commit

Permalink
fix log for no void modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaafar committed Jun 17, 2016
1 parent 99497f6 commit 3a32845
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const checkVoidModules = (createdModules, graphDetails) => {
const voidModulesInjected = f.flow(
f.pickBy(module => module == null),
f.keys,
f.tap(modules => console.log(`the modules "${modules.join(', ')}" are void`)),
f.tap(modules => {
if (modules.length) {
console.log(`the modules "${modules.join(', ')}" are void`);
}
}),
f.map(moduleName => [moduleName, graphDetails.depends(moduleName)]),
f.filter('1.length')
)(createdModules);
Expand Down

0 comments on commit 3a32845

Please sign in to comment.