mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 19:17:21 +00:00
bump to use go 1.22 (#29119)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user