mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
c5f4345138
commit
b5adaa8dbd
Notes:
git
2020-06-29 11:07:04 +09:00
1 changed files with 2 additions and 4 deletions
2
goruby.c
2
goruby.c
|
@ -49,11 +49,9 @@ goruby_options(int argc, char **argv)
|
|||
close(infd);
|
||||
return ret;
|
||||
}
|
||||
else {
|
||||
no_irb:
|
||||
return ruby_options(argc, argv);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
goruby_run_node(void *arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue