Skip to content

Commit

Permalink
no-array-callback-reference: remove superfluous argument (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Jan 14, 2022
1 parent 16bc33a commit 0a81ce5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules/no-array-callback-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ const ignoredFirstArgumentSelector = [

/** @param {import('eslint').Rule.RuleContext} context */
const create = context => {
const sourceCode = context.getSourceCode();
const rules = {};

for (const [method, options] of iteratorMethods) {
Expand All @@ -214,7 +213,7 @@ const create = context => {
}

const [iterator] = node.arguments;
return getProblem(context, iterator, method, options, sourceCode);
return getProblem(context, iterator, method, options);
};
}

Expand Down

0 comments on commit 0a81ce5

Please sign in to comment.