[CLEANUP] make golangci-lint@v1.56.1 happy

This commit is contained in:
Earl Warren 2024-02-15 16:19:36 +01:00
parent 79df409256
commit c8b177713a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
8 changed files with 45 additions and 45 deletions

View file

@ -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