Skip to content

Commit 0ef687e

Browse files
Trottaddaleax
authored andcommitted
tools: fix error in custom ESLint rule
Fix previously-unnoticed typo in `required-modules.js`. Refs: #13758 (comment) PR-URL: #13758 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent b171e72 commit 0ef687e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/eslint-rules/required-modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = function(context) {
7575
if (foundModules.length < requiredModules.length) {
7676
var missingModules = requiredModules.filter(
7777
function(module) {
78-
return foundModules.indexOf(module === -1);
78+
return foundModules.indexOf(module) === -1;
7979
}
8080
);
8181
missingModules.forEach(function(moduleName) {

0 commit comments

Comments
 (0)