address comments

This commit is contained in:
Nathan Nichols
2021-05-13 09:06:20 -05:00
parent cabd9e0c45
commit db92f420d9
3 changed files with 34 additions and 50 deletions

View File

@@ -478,12 +478,7 @@ PostgresBackend::fetchBookOffers(
for (auto i = 0; i < ledgerEntries.size(); ++i)
{
if(ledgerEntries[i].size() != 0)
{
if (objects.size() == limit)
return {objects, keys[i], warning};
objects.push_back(LedgerObject{keys[i], ledgerEntries[i]});
}
}
return {objects, {}, warning};