Disallow single-statement if statements without a brace.

(imported from commit e52f90a0f3e7340a764d391b1f38f1820e953ae7)
This commit is contained in:
Tim Abbott 2013-08-01 11:38:44 -04:00
parent 5a320db3c1
commit f792adfa6a
1 changed files with 0 additions and 6 deletions

View File

@ -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;
},