diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-11 16:17:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-11 16:27:30 +0900 |
commit | 343b0a281d1dd6e1ab7e6af4c48ad2e6d09a0071 (patch) | |
tree | 749e16b555fcb71c34ed582f6093248f9f09b917 | |
parent | 655c65d65b75a6ac733dfb8e42437e7c43b7cfe1 (diff) |
Made a short-circuit expression w/o result into an `if`-statement
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |