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

This commit is contained in:
Bill Kachirsky 2020-02-27 01:48:56 -08:00
parent dba6bf0408
commit e5e3e84b23

View File

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