diff options
Diffstat (limited to 'internal/route/admin')
-rw-r--r-- | internal/route/admin/repos.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/admin/repos.go b/internal/route/admin/repos.go index 12560b02..c2d2509c 100644 --- a/internal/route/admin/repos.go +++ b/internal/route/admin/repos.go @@ -34,7 +34,7 @@ func Repos(c *context.Context) { ) keyword := c.Query("q") - if len(keyword) == 0 { + if keyword == "" { repos, err = db.Repositories(page, conf.UI.Admin.RepoPagingNum) if err != nil { c.Error(err, "list repositories") |