зеркало из https://github.com/github/ruby.git
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:
Родитель
c5f4345138
Коммит
b5adaa8dbd
6
goruby.c
6
goruby.c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче