Skip to content

Commit

Permalink
tools: fix error in custom ESLint rule
Browse files Browse the repository at this point in the history
Fix previously-unnoticed typo in `required-modules.js`.

Refs: #13758 (comment)
  • Loading branch information
Trott committed Jun 19, 2017
1 parent 9a2a30c commit 8b834c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/eslint-rules/required-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function(context) {
if (foundModules.length < requiredModules.length) {
var missingModules = requiredModules.filter(
function(module) {
return foundModules.indexOf(module === -1);
return foundModules.indexOf(module) === -1;
}
);
missingModules.forEach(function(moduleName) {
Expand Down

0 comments on commit 8b834c3

Please sign in to comment.