mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-08 11:33:37 +02:00
go fumpt
This commit is contained in:
parent
dcb013cb7a
commit
c5c12ad6bd
@ -591,12 +591,12 @@ func SearchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, co
|
|||||||
}
|
}
|
||||||
|
|
||||||
func searchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, cond builder.Cond) (db.Engine, int64, error) {
|
func searchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, cond builder.Cond) (db.Engine, int64, error) {
|
||||||
var page = opts.Page
|
page := opts.Page
|
||||||
if page <= 0 {
|
if page <= 0 {
|
||||||
page = 1
|
page = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
var orderBy = opts.OrderBy
|
orderBy := opts.OrderBy
|
||||||
if len(orderBy) == 0 {
|
if len(orderBy) == 0 {
|
||||||
orderBy = db.SearchOrderByAlphabetically
|
orderBy = db.SearchOrderByAlphabetically
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user