Skip to content

Commit

Permalink
rename arguments0
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Sep 23, 2019
1 parent 2166254 commit 8f8de4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/catch-error-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function isLintablePromiseCatch(node) {
return false;
}

const [argument0] = node.arguments;
const [firstArgument] = node.arguments;

return argument0.type === 'FunctionExpression' || argument0.type === 'ArrowFunctionExpression';
return firstArgument.type === 'FunctionExpression' || firstArgument.type === 'ArrowFunctionExpression';
}

const create = context => {
Expand Down

0 comments on commit 8f8de4c

Please sign in to comment.