Fix error of only loading one issue if no limit (-1) is set.

pull/11/head
Bill Kachirsky 4 years ago
parent dba6bf0408
commit e5e3e84b23

@ -296,9 +296,11 @@ class GiteaRepository extends BaseRepositoryImpl {
continue;
GiteaTaskImpl mapped = new GiteaTaskImpl(this, raw);
result.add(mapped);
limit--;
if (limit < 1)
return false;
if (limit > -1) {
limit--;
if (limit < 1)
return false;
}
}
return true;
}

Loading…
Cancel
Save