mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Made a short-circuit expression w/o result into an if
-statement
This commit is contained in:
parent
655c65d65b
commit
343b0a281d
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -11672,7 +11672,7 @@ node_newnode_with_locals(struct parser_params *p, enum node_type type, VALUE a1,
|
|||
|
||||
a0 = local_tbl(p, &tbl);
|
||||
n = NEW_NODE(type, a0, a1, a2, loc);
|
||||
tbl && RB_OBJ_WRITTEN(p->ast, Qnil, tbl);
|
||||
if (tbl) RB_OBJ_WRITTEN(p->ast, Qnil, tbl);
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue