mirror of https://gitee.com/bigwinds/arangodb
removed useless condition
This commit is contained in:
parent
967b940f2a
commit
bbf7bf3c33
|
@ -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!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue