summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go
index 1cc25231e6..c0a4172dc5 100644
--- a/models/org.go
+++ b/models/org.go
@@ -677,7 +677,7 @@ func (env *accessibleReposEnv) Repos(page, pageSize int) ([]*Repository, error)
}
repos := make([]*Repository, 0, len(repoIDs))
- if len(repoIDs) <= 0 {
+ if len(repoIDs) == 0 {
return repos, nil
}
@@ -705,7 +705,7 @@ func (env *accessibleReposEnv) MirrorRepos() ([]*Repository, error) {
}
repos := make([]*Repository, 0, len(repoIDs))
- if len(repoIDs) <= 0 {
+ if len(repoIDs) == 0 {
return repos, nil
}