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:
卜部昌平 2020-06-15 14:52:02 +09:00
parent c5f4345138
commit b5adaa8dbd
Notes: git 2025-05-14 12:41:59 +00:00

View File

@ -49,10 +49,8 @@ goruby_options(int argc, char **argv)
close(infd); close(infd);
return ret; return ret;
} }
else { no_irb:
no_irb: return ruby_options(argc, argv);
return ruby_options(argc, argv);
}
} }
int int