From 5a0b9ea4e5cec32cf8c142a79ff9748660a56176 Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sat, 14 Dec 2019 18:06:12 +0100 Subject: [PATCH] Let's avoid one more statement --- mcrcon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mcrcon.c b/mcrcon.c index d34008b..5f1d529 100644 --- a/mcrcon.c +++ b/mcrcon.c @@ -658,7 +658,7 @@ int run_commands(int argc, char *argv[]) return EXIT_FAILURE; if (++i >= argc) - break; + return EXIT_SUCCESS; if (global_wait_seconds > 0) { @@ -669,8 +669,6 @@ int run_commands(int argc, char *argv[]) #endif } } - - return EXIT_SUCCESS; } // interactive terminal mode