diff --git a/lib/rules/no-useless-catch.js b/lib/rules/no-useless-catch.js index 3211ed2c7364..e4284cfb4f43 100644 --- a/lib/rules/no-useless-catch.js +++ b/lib/rules/no-useless-catch.js @@ -27,6 +27,7 @@ module.exports = { return { CatchClause(node) { if ( + node.param && node.param.type === "Identifier" && node.body.body.length && node.body.body[0].type === "ThrowStatement" &&