From 85abc8dfdb4f3e3217e6a91ef8a9398f7265776e Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sat, 17 Apr 2021 23:10:49 +0800 Subject: [PATCH] - Avoid passing superfluous argument --- lib/rules/prefer-arrow-callback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/prefer-arrow-callback.js b/lib/rules/prefer-arrow-callback.js index 81ed8f1..d60584e 100644 --- a/lib/rules/prefer-arrow-callback.js +++ b/lib/rules/prefer-arrow-callback.js @@ -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) &&