Readd braces for single-line if

This is misleading, especially because it's in a section of code where
the other branches are using braces.
This commit is contained in:
Fabian Homborg 2021-12-01 16:47:00 +01:00
parent de0cbd2984
commit 24cdb896d3

View File

@ -449,9 +449,9 @@ static te_expr *base(state *s) {
case TOK_OPEN:
next_token(s);
ret = expr(s);
if (s->type == TOK_CLOSE)
if (s->type == TOK_CLOSE) {
next_token(s);
else if (s->type != TOK_ERROR && s->type != TOK_END && s->error == TE_ERROR_NONE) {
} else if (s->type != TOK_ERROR && s->type != TOK_END && s->error == TE_ERROR_NONE) {
s->type = TOK_ERROR;
s->error = TE_ERROR_TOO_MANY_ARGS;
} else if (s->type != TOK_ERROR || s->error == TE_ERROR_UNKNOWN) {