diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-19 11:13:30 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-06-24 12:19:26 +0200 |
commit | 0ef687e85813e683b47f60ea577947ff0e770e83 (patch) | |
tree | 44dad085b3f5c111d1890fe143a9b35ec1d6ead0 | |
parent | b171e728e589898a056cf41ed8a5db0781d4ae1a (diff) | |
download | node-new-0ef687e85813e683b47f60ea577947ff0e770e83.tar.gz |
tools: fix error in custom ESLint rule
Fix previously-unnoticed typo in `required-modules.js`.
Refs: https://github.com/nodejs/node/pull/13758#discussion_r122582786
PR-URL: https://github.com/nodejs/node/pull/13758
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
-rw-r--r-- | tools/eslint-rules/required-modules.js | 2 |
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) { |