mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Util: Small improvements in gArgs usage
- Don't check gArgs.IsArgSet() is greater than 0 - Remove unneeded calls and local variables
This commit is contained in:
parent
52922456b8
commit
78da882edd
3 changed files with 11 additions and 15 deletions
|
|
@ -93,7 +93,7 @@ static bool multiUserAuthorized(std::string strUserPass)
|
|||
std::string strUser = strUserPass.substr(0, strUserPass.find(":"));
|
||||
std::string strPass = strUserPass.substr(strUserPass.find(":") + 1);
|
||||
|
||||
if (gArgs.IsArgSet("-rpcauth") > 0) {
|
||||
if (gArgs.IsArgSet("-rpcauth")) {
|
||||
//Search for multi-user login/pass "rpcauth" from config
|
||||
BOOST_FOREACH(std::string strRPCAuth, gArgs.GetArgs("-rpcauth"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue