mirror of
https://github.com/e1fueg0/intellij-gitea-plugin.git
synced 2024-10-27 20:34:04 +00:00
Fix error of only loading one issue if no limit (-1) is set.
This commit is contained in:
parent
dba6bf0408
commit
e5e3e84b23
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user