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

@@ -604,12 +604,7 @@ CassandraBackend::fetchBookOffers(
for (size_t i = 0; i < objs.size(); ++i)
{
if (objs[i].size() != 0)
{
if (results.size() == limit)
return {results, keys[i], warning};
results.push_back({keys[i], objs[i]});
}
}
return {results, {}, warning};