Flatten nested conditional statements

This commit is contained in:
János Benjamin Antal 2022-10-25 20:30:29 +02:00
parent fea92f4829
commit 6a31c49432

View File

@ -397,11 +397,10 @@ class DistributedScanAllAndFilterCursor : public Cursor {
request_state_.label = label_.has_value() ? std::make_optional(shard_manager.LabelToName(*label_)) : std::nullopt;
if (current_vertex_it == current_batch.end()) {
if (request_state_.state == State::COMPLETED || !MakeRequest(shard_manager, context)) {
ResetExecutionState();
continue;
}
if (current_vertex_it == current_batch.end() &&
(request_state_.state == State::COMPLETED || !MakeRequest(shard_manager, context))) {
ResetExecutionState();
continue;
}
frame[output_symbol_] = TypedValue(std::move(*current_vertex_it));