mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 03:29:50 +02:00
Fix lint
This commit is contained in:
1 parent
8ec691f3ce
commit
e7d5c99b42
8 files changed
+56
-43
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ func FindObjects[Object any](ctx context.Context, cond builder.Cond, opts *ListO
|
||||
if opts.Page < 1 {
|
||||
opts.Page = 1
|
||||
}
|
||||
sess.Limit(opts.PageSize, opts.PageSize * (opts.Page - 1))
|
||||
sess.Limit(opts.PageSize, opts.PageSize*(opts.Page-1))
|
||||
}
|
||||
return sess.Find(objects)
|
||||
}
|
||||
Reference in new issue
Block a user