From 57f3a2bfbe9448082acdf0f15a8932d8c875eaea Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 17 May 2026 20:45:39 +0200 Subject: [PATCH] Replace directory == "" with a simple "else" Replace directory == "" with a simple "else" , since the previous condition was the opposite. closes https://github.com/official-stockfish/Stockfish/pull/6817 No functional change --- src/nnue/network.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/nnue/network.cpp b/src/nnue/network.cpp index b63789e1e..e2c77da48 100644 --- a/src/nnue/network.cpp +++ b/src/nnue/network.cpp @@ -101,14 +101,9 @@ void Network::load(const std::string& rootDirectory, std::string evalfilePath) { if (std::string(evalFile.current) != evalfilePath) { if (directory != "") - { load_user_net(directory, evalfilePath); - } - - if (directory == "" && evalfilePath == std::string(evalFile.defaultName)) - { + else if (evalfilePath == std::string(evalFile.defaultName)) load_internal(); - } } } }