From f792adfa6a65a279f16955fb668f3ef381ed3805 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 1 Aug 2013 11:38:44 -0400 Subject: [PATCH] Disallow single-statement if statements without a brace. (imported from commit e52f90a0f3e7340a764d391b1f38f1820e953ae7) --- tools/jslint/check-all.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/jslint/check-all.js b/tools/jslint/check-all.js index 6b0652ab69..3c7a860562 100644 --- a/tools/jslint/check-all.js +++ b/tools/jslint/check-all.js @@ -74,12 +74,6 @@ var options = { // For each error.raw message, we can return 'true' to ignore // the error. var exceptions = { - "Expected '{a}' and instead saw '{b}'." : function (error) { - // We allow single-statement 'if' with no brace. - // This exception might be overly broad but oh well. - return (error.a === '{'); - }, - "Unexpected 'else' after 'return'." : function () { return true; },