Skip to content

Commit 8b834c3

Browse files
committed
tools: fix error in custom ESLint rule
Fix previously-unnoticed typo in `required-modules.js`. Refs: #13758 (comment)
1 parent 9a2a30c commit 8b834c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/eslint-rules/required-modules.js

Lines changed: 1 addition & 1 deletion
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)