mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
Handle empty Json values:
* Replace Json::Value::isNull() and Json::Value::empty with operator bool()
This commit is contained in:
committed by
Nik Bougalis
parent
a5a9242f4e
commit
9111ad1a9d
@@ -82,7 +82,7 @@ Json::Value doGatewayBalances (RPC::Context& context)
|
||||
Json::Value jvAccepted = RPC::accountFromString (
|
||||
accountID, bIndex, strIdent, iIndex, bStrict);
|
||||
|
||||
if (!jvAccepted.empty ())
|
||||
if (jvAccepted)
|
||||
return jvAccepted;
|
||||
|
||||
context.loadType = Resource::feeHighBurdenRPC;
|
||||
|
||||
Reference in New Issue
Block a user