diff options
author | 卜部昌平 <[email protected]> | 2020-06-15 14:52:02 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-06-29 11:05:41 +0900 |
commit | b5adaa8dbdd6ce929faf9e22badbf520e9b0850b (patch) | |
tree | 7339d07700066d054a8aa58526929bdc5e87d691 /goruby.c | |
parent | c5f43451389a9a19d14c34e553d271038a87be99 (diff) |
goruby_options: do not goto into a branch
I'm not necessarily against every goto in general, but jumping into a
branch is definitely a bad idea. Better refactor.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3247
Diffstat (limited to 'goruby.c')
-rw-r--r-- | goruby.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -49,10 +49,8 @@ goruby_options(int argc, char **argv) close(infd); return ret; } - else { - no_irb: - return ruby_options(argc, argv); - } + no_irb: + return ruby_options(argc, argv); } int |