Skip to content

Commit dcb013c

Browse files
Fix
1 parent 6777968 commit dcb013c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/repo/repo_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,12 +591,12 @@ func SearchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, co
591591
}
592592

593593
func searchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, cond builder.Cond) (db.Engine, int64, error) {
594-
var page int = opts.Page
594+
var page = opts.Page
595595
if page <= 0 {
596596
page = 1
597597
}
598598

599-
var orderBy db.SearchOrderBy = opts.OrderBy
599+
var orderBy = opts.OrderBy
600600
if len(orderBy) == 0 {
601601
orderBy = db.SearchOrderByAlphabetically
602602
}

0 commit comments

Comments
 (0)