mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 01:07:57 +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
@@ -50,7 +50,7 @@ Json::Value doAccountOffers (RPC::Context& context)
|
||||
|
||||
Json::Value const jv = RPC::accountFromString (
|
||||
accountID, bIndex, strIdent, iIndex, false);
|
||||
if (! jv.empty ())
|
||||
if (jv)
|
||||
{
|
||||
for (Json::Value::const_iterator it (jv.begin ()); it != jv.end (); ++it)
|
||||
result[it.memberName ()] = it.key ();
|
||||
|
||||
Reference in New Issue
Block a user