mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 12:25:54 +02:00
Merge #10118: Util: Remove redundant calls to argsGlobal.IsArgSet()
ed866abIndentation after 'Remove redundant calls to gArgs.IsArgSet()' (Jorge Timón)506b700Util: Remove redundant calls to gArgs.IsArgSet() (Jorge Timón) Tree-SHA512: 4f97a0bf2a76c0f351a6343db62898cf057d745c848de00fa09465e870a120f28e0d836cafd6a047f4ec0da7ab671aebee43fa7410c9f0e66382edd1bb2009ba
This commit is contained in:
@@ -422,7 +422,9 @@ void ArgsManager::ParseParameters(int argc, const char* const argv[])
|
||||
std::vector<std::string> ArgsManager::GetArgs(const std::string& strArg)
|
||||
{
|
||||
LOCK(cs_args);
|
||||
return mapMultiArgs.at(strArg);
|
||||
if (IsArgSet(strArg))
|
||||
return mapMultiArgs.at(strArg);
|
||||
return {};
|
||||
}
|
||||
|
||||
bool ArgsManager::IsArgSet(const std::string& strArg)
|
||||
|
||||
Reference in New Issue
Block a user