Fix bug in the C API in-edges iterator (#613)

This commit is contained in:
Antonio Filipovic 2022-10-25 19:18:44 +02:00 committed by GitHub
parent fbd7274c95
commit 3daab6ce97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2124,10 +2124,7 @@ mgp_error mgp_edges_iterator_next(mgp_edges_iterator *it, mgp_edge **result) {
return &*it->current_e;
};
if (it->in_it) {
auto *result = next(true);
if (result != nullptr) {
return result;
}
return next(true);
}
return next(false);
},