mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Update golangci-lint to v1.62.2, fix issues (#32845)
Update it and fix new issues related to `redefines-builtin-id`
This commit is contained in:
@@ -338,7 +338,7 @@ func GetIssueBlocks(ctx *context.APIContext) {
|
||||
}
|
||||
|
||||
skip := (page - 1) * limit
|
||||
max := page * limit
|
||||
maxNum := page * limit
|
||||
|
||||
deps, err := issue.BlockingDependencies(ctx)
|
||||
if err != nil {
|
||||
@@ -352,7 +352,7 @@ func GetIssueBlocks(ctx *context.APIContext) {
|
||||
repoPerms[ctx.Repo.Repository.ID] = ctx.Repo.Permission
|
||||
|
||||
for i, depMeta := range deps {
|
||||
if i < skip || i >= max {
|
||||
if i < skip || i >= maxNum {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user