summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/eslint-rules/required-modules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint-rules/required-modules.js b/tools/eslint-rules/required-modules.js
index 7691d5dd7d..4a444809b7 100644
--- a/tools/eslint-rules/required-modules.js
+++ b/tools/eslint-rules/required-modules.js
@@ -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) {