1
1
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:
techknowlogick
2024-02-14 13:19:57 -05:00
committed by GitHub
parent 155269fa58
commit a346a8c852
13 changed files with 54 additions and 54 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