We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfe6a9e commit eb1b113Copy full SHA for eb1b113
rules/prefer-catch.js
@@ -28,8 +28,7 @@ module.exports = {
28
return {
29
'CallExpression > MemberExpression.callee'(node) {
30
if (
31
- node.property &&
32
- node.property.name === 'then' &&
+ node.property?.name === 'then' &&
33
node.parent.arguments.length >= 2
34
) {
35
context.report({
0 commit comments