From a3cf7bf60f61f5927a62c8c16b817703ed9f92e5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 15 Feb 2024 22:21:09 +0000 Subject: [PATCH] removed redundant else from cli argument processing of --numa --- common/common.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index c3d4945c7..8e9ea5b6a 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -674,13 +674,12 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) { if (++i >= argc) { invalid_param = true; break; - } else { - std::string value(argv[i]); - /**/ if (value == "distribute" || value == "" ) { params.numa = GGML_NUMA_STRATEGY_DISTRIBUTE; } - else if (value == "isolate") { params.numa = GGML_NUMA_STRATEGY_ISOLATE; } - else if (value == "numactl") { params.numa = GGML_NUMA_STRATEGY_NUMACTL; } - else { invalid_param = true; break; } } + std::string value(argv[i]); + /**/ if (value == "distribute" || value == "" ) { params.numa = GGML_NUMA_STRATEGY_DISTRIBUTE; } + else if (value == "isolate") { params.numa = GGML_NUMA_STRATEGY_ISOLATE; } + else if (value == "numactl") { params.numa = GGML_NUMA_STRATEGY_NUMACTL; } + else { invalid_param = true; break; } } else if (arg == "--verbose-prompt") { params.verbose_prompt = true; } else if (arg == "--no-display-prompt") {