Handle empty Json values:

* Replace Json::Value::isNull() and Json::Value::empty with operator bool()
This commit is contained in:
Tom Ritchford
2015-06-18 15:37:29 -04:00
committed by Nik Bougalis
parent a5a9242f4e
commit 9111ad1a9d
22 changed files with 67 additions and 77 deletions

View File

@@ -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;