diff options
Diffstat (limited to 'tools/eslint/lib/rules/no-throw-literal.js')
-rw-r--r-- | tools/eslint/lib/rules/no-throw-literal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/no-throw-literal.js b/tools/eslint/lib/rules/no-throw-literal.js index 69eda1c765..034361c7a6 100644 --- a/tools/eslint/lib/rules/no-throw-literal.js +++ b/tools/eslint/lib/rules/no-throw-literal.js @@ -59,11 +59,11 @@ module.exports = { schema: [] }, - create: function(context) { + create(context) { return { - ThrowStatement: function(node) { + ThrowStatement(node) { if (!couldBeError(node.argument)) { context.report(node, "Expected an object to be thrown."); } else if (node.argument.type === "Identifier") { |