Skip to content

Commit

Permalink
Merge pull request #278 from brettz9/superfluous-arg
Browse files Browse the repository at this point in the history
- Avoid passing superfluous argument
  • Loading branch information
lo1tuma committed May 18, 2021
2 parents c52c155 + 85abc8d commit 6e0be1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/prefer-arrow-callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ module.exports = {
}

// Reports if it's a callback which can replace with arrows.
const callbackInfo = getCallbackInfo(node, context);
const callbackInfo = getCallbackInfo(node);

if (callbackInfo.isCallback &&
(!allowUnboundThis || !scopeInfo.this || callbackInfo.isLexicalThis) &&
Expand Down

0 comments on commit 6e0be1b

Please sign in to comment.