From: Volker Lendecke Date: Sun, 25 Jan 2026 09:33:19 +0000 (+0100) Subject: lib: Avoid an "else", we return in the if-branch X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68a6052b78b83e19e50dc7dbf3f02c3cdaf24b97;p=thirdparty%2Fsamba.git lib: Avoid an "else", we return in the if-branch Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/lib/util/util_str.c b/lib/util/util_str.c index 3faf204d251..a88301d71b3 100644 --- a/lib/util/util_str.c +++ b/lib/util/util_str.c @@ -233,10 +233,11 @@ _PUBLIC_ bool set_boolean(const char *boolean_string, bool *boolean) strwicmp(boolean_string, "1") == 0) { *boolean = true; return true; - } else if (strwicmp(boolean_string, "no") == 0 || - strwicmp(boolean_string, "false") == 0 || - strwicmp(boolean_string, "off") == 0 || - strwicmp(boolean_string, "0") == 0) { + } + if (strwicmp(boolean_string, "no") == 0 || + strwicmp(boolean_string, "false") == 0 || + strwicmp(boolean_string, "off") == 0 || + strwicmp(boolean_string, "0") == 0) { *boolean = false; return true; }