1
0
Fork 0
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:
Nobuyoshi Nakada 2019-09-11 16:17:04 +09:00
parent 655c65d65b
commit 343b0a281d
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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