Skip to content

Commit

Permalink
codacy woes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Dec 14, 2019
1 parent dbeeb10 commit 0bac908
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions code/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ var buildWebUI = function(module) {
// '<module>' to include a single module
// 'small' is the default state (all disabled)
if ('all' === module) {
Object.keys(modules).forEach(function(key) {
if (excludeAll.indexOf(key) >= 0) return;
modules[key] = true;
});
Object.keys(modules)
.filter(function(key) {
return exludeAll.indexOf(key) < 0;
})
.forEach(function(key) {
modules[key] = true;
});
} else if ('small' !== module) {
modules[module] = true;
}
Expand Down

0 comments on commit 0bac908

Please sign in to comment.