From: Joel Rosdahl Date: Mon, 5 Oct 2020 08:51:38 +0000 (+0200) Subject: Remove redundant check related to parsing “-x” X-Git-Tag: v4.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c18fa6a0dea8b2bf0baf8dbed261125b7ac46a;p=thirdparty%2Fccache.git Remove redundant check related to parsing “-x” --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index c3593e6de..0ae32c133 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -412,12 +412,12 @@ process_arg(Context& ctx, i++; return nullopt; } - if (args[i].length() >= 3) { - if (args_info.input_file.empty()) { - state.explicit_language = args[i].substr(2); - } - return nullopt; + + DEBUG_ASSERT(args[i].length() >= 3); + if (args_info.input_file.empty()) { + state.explicit_language = args[i].substr(2); } + return nullopt; } // We need to work out where the output was meant to go.