diff --git a/src/httprpc.cpp b/src/httprpc.cpp index c010ea479a..d666d5881d 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -317,8 +317,6 @@ static bool InitRPCAuthentication() } if (!(gArgs.GetArgs("-rpcauth").empty() && gArgs.GetArgs("-rpcauthfile").empty())) { LogPrintf("Using rpcauth authentication.\n"); - } - if (gArgs.GetArg("-rpcauth", "") != "") { for (const std::string& rpcauth : gArgs.GetArgs("-rpcauth")) { if (rpcauth.empty()) continue; std::vector fields{SplitString(rpcauth, ':')}; @@ -332,8 +330,6 @@ static bool InitRPCAuthentication() return false; } } - } - if (gArgs.GetArg("-rpcauthfile", "") != "") { for (const std::string& path : gArgs.GetArgs("-rpcauthfile")) { std::ifstream file; file.open(path);