Skip to content

Commit

Permalink
Update handle-callback-err.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored Nov 24, 2023
1 parent 2f91a70 commit 4cb92a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/handle-callback-err.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = {
* @returns {void}
*/
function checkForError(node) {
const scope = sourceCode.getScope(node)
const scope = sourceCode.getScope(node) ?? context.getScope() //TODO: remove context.getScope() when dropping support for ESLint < v9
const parameters = getParameters(scope)
const firstParameter = parameters[0]

Expand Down

0 comments on commit 4cb92a7

Please sign in to comment.