mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 04:09:29 +02:00
[CLEANUP] make golangci-lint@v1.56.1 happy
This commit is contained in:
parent
79df409256
commit
c8b177713a
8 changed files with 45 additions and 45 deletions
|
@ -296,17 +296,17 @@ func Milestones(ctx *context.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
showRepoIds := make(container.Set[int64], len(showRepos))
|
||||
showRepoIDs := make(container.Set[int64], len(showRepos))
|
||||
for _, repo := range showRepos {
|
||||
if repo.ID > 0 {
|
||||
showRepoIds.Add(repo.ID)
|
||||
showRepoIDs.Add(repo.ID)
|
||||
}
|
||||
}
|
||||
if len(repoIDs) == 0 {
|
||||
repoIDs = showRepoIds.Values()
|
||||
repoIDs = showRepoIDs.Values()
|
||||
}
|
||||
repoIDs = slices.DeleteFunc(repoIDs, func(v int64) bool {
|
||||
return !showRepoIds.Contains(v)
|
||||
return !showRepoIDs.Contains(v)
|
||||
})
|
||||
|
||||
var pagerCount int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue