mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
one-liner
This commit is contained in:
@@ -195,9 +195,7 @@ STVector256* STVector256::construct(SerializerIterator& u, const char *name)
|
||||
|
||||
void STVector256::add(Serializer& s) const
|
||||
{
|
||||
int size = mValue.size();
|
||||
if (!size) s.addVL(NULL, 0);
|
||||
else s.addVL(mValue[0].begin(), mValue.size() * (256 / 8));
|
||||
s.addVL(mValue.empty() ? NULL : mValue[0].begin(), mValue.size() * (256 / 8));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user