Replace directory == "<internal>" with a simple "else"

Replace directory == "<internal>" with a simple "else" , since the previous condition was the opposite.

closes https://github.com/official-stockfish/Stockfish/pull/6817

No functional change
This commit is contained in:
FauziAkram
2026-05-17 20:45:39 +02:00
committed by Joost VandeVondele
parent 1cebdafc14
commit 57f3a2bfbe
+1 -6
View File
@@ -101,17 +101,12 @@ void Network::load(const std::string& rootDirectory, std::string evalfilePath) {
if (std::string(evalFile.current) != evalfilePath) if (std::string(evalFile.current) != evalfilePath)
{ {
if (directory != "<internal>") if (directory != "<internal>")
{
load_user_net(directory, evalfilePath); load_user_net(directory, evalfilePath);
} else if (evalfilePath == std::string(evalFile.defaultName))
if (directory == "<internal>" && evalfilePath == std::string(evalFile.defaultName))
{
load_internal(); load_internal();
} }
} }
} }
}
bool Network::save(const std::optional<std::string>& filename) const { bool Network::save(const std::optional<std::string>& filename) const {