mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 21:57:14 +08:00
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:
parent
de0cbd2984
commit
24cdb896d3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user