mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Tiny optimization.
This commit is contained in:
@@ -412,8 +412,7 @@ bool SHAMap::hasItem(const uint256& id)
|
||||
boost::recursive_mutex::scoped_lock sl(mLock);
|
||||
SHAMapLeafNode::pointer leaf=walkToLeaf(id, false, false);
|
||||
if(!leaf) return false;
|
||||
SHAMapItem::pointer item=leaf->findItem(id);
|
||||
return (bool) item;
|
||||
return leaf->hasItem(id);
|
||||
}
|
||||
|
||||
bool SHAMap::delItem(const uint256& id)
|
||||
|
||||
Reference in New Issue
Block a user