diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 16:56:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 16:56:27 +0900 |
| commit | 77331d127b6ab202e703bd7297ab6aabf4a314e9 (patch) | |
| tree | e86c5ee7c9f4a5a867d63745607f525116b84d19 /mrbgems/mruby-compiler/core/parse.y | |
| parent | fbf4089d2f9480b5f5c9b8cdc312ad5e8417f62e (diff) | |
| download | mruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.tar.gz mruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.zip | |
Unify `else` clause style
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 41984b186..226701b52 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -4124,12 +4124,14 @@ parse_string(parser_state *p) } if (flag > flags) { dup = strndup(flags, (size_t)(flag - flags)); - } else { + } + else { dup = NULL; } if (enc) { encp = strndup(&enc, 1); - } else { + } + else { encp = NULL; } pylval.nd = new_regx(p, s, dup, encp); |
