Skip to content

Commit

Permalink
- Avoid passing superfluous argument
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Apr 17, 2021
1 parent c52c155 commit 85abc8d
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 85abc8d

Please sign in to comment.