Commit de3cd0ff authored by Roman Lacko's avatar Roman Lacko Committed by Fakultni administrativa
Browse files

GitLab::API::Iterator: don't call next_block when we have finished flag set

parent 289f68a7
......@@ -90,7 +90,9 @@ sub all {
my ($self) = @_;
return undef if !$self->{good};
while ($self->next_block) {}
while (!$self->{finished} && $self->next_block) {
# nop
}
return !$self->{good} ? undef : $self->{data};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment