Skip to content

Commit 0a81ce5

Browse files
authored
no-array-callback-reference: remove superfluous argument (#1692)
1 parent 16bc33a commit 0a81ce5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rules/no-array-callback-reference.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ const ignoredFirstArgumentSelector = [
189189

190190
/** @param {import('eslint').Rule.RuleContext} context */
191191
const create = context => {
192-
const sourceCode = context.getSourceCode();
193192
const rules = {};
194193

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

216215
const [iterator] = node.arguments;
217-
return getProblem(context, iterator, method, options, sourceCode);
216+
return getProblem(context, iterator, method, options);
218217
};
219218
}
220219

0 commit comments

Comments
 (0)