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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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};
}