routes/home: minor code improve

This commit is contained in:
Unknwon
2017-07-18 22:09:57 -04:00
parent ee9950ec2f
commit 643c85e9c8
4 changed files with 11 additions and 11 deletions

View File

@@ -1634,7 +1634,7 @@ type SearchRepoOptions struct {
// SearchRepositoryByName takes keyword and part of repository name to search,
// it returns results in given range and number of total results.
func SearchRepositoryByName(opts *SearchRepoOptions) (repos []*Repository, _ int64, _ error) {
func SearchRepositoryByName(opts *SearchRepoOptions) (repos []*Repository, count int64, err error) {
if opts.Page <= 0 {
opts.Page = 1
}