1
0
Fork 0

removed useless condition

This commit is contained in:
jsteemann 2016-05-18 08:37:32 +02:00
parent 967b940f2a
commit bbf7bf3c33
1 changed files with 3 additions and 7 deletions

View File

@ -534,13 +534,9 @@ AqlItemBlock* IndexBlock::getSome(size_t atLeast, size_t atMost) {
// getPlanNode()->_registerPlan->varInfo, // getPlanNode()->_registerPlan->varInfo,
// but can just take cur->getNrRegs() as registerId: // but can just take cur->getNrRegs() as registerId:
auto doc = _documents[_posInDocs++]; auto doc = _documents[_posInDocs++];
if (doc.isExternal()) { TRI_ASSERT(doc.isExternal());
res->setValue(j, static_cast<arangodb::aql::RegisterId>(curRegs), res->setValue(j, static_cast<arangodb::aql::RegisterId>(curRegs),
AqlValue(doc.resolveExternal().begin())); AqlValue(doc.resolveExternal().begin()));
} else {
res->setValue(j, static_cast<arangodb::aql::RegisterId>(curRegs),
AqlValue(doc));
}
// No harm done, if the setValue throws! // No harm done, if the setValue throws!
} }
} }