mirror of https://github.com/zulip/zulip.git
Disallow single-statement if statements without a brace.
(imported from commit e52f90a0f3e7340a764d391b1f38f1820e953ae7)
This commit is contained in:
parent
5a320db3c1
commit
f792adfa6a
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue