From b5adaa8dbdd6ce929faf9e22badbf520e9b0850b Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Mon, 15 Jun 2020 14:52:02 +0900 Subject: 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. --- goruby.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'goruby.c') diff --git a/goruby.c b/goruby.c index ddb62562d4..e4119c56f7 100644 --- a/goruby.c +++ b/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 -- cgit v1.2.3