mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d547b53cca
Many places have the following logic: ```go func (jobs ActionJobList) GetRunIDs() []int64 { ids := make(container.Set[int64], len(jobs)) for _, j := range jobs { if j.RunID == 0 { continue } ids.Add(j.RunID) } return ids.Values() } ``` this introduces a `container.FilterMapUnique` function, which reduces the code above to: ```go func (jobs ActionJobList) GetRunIDs() []int64 { return container.FilterMapUnique(jobs, func(j *ActionRunJob) (int64, bool) { return j.RunID, j.RunID != 0 }) } ``` |
10 months ago | |
---|---|---|
.. | ||
archiver.go | 1 year ago | |
attachment.go | 11 months ago | |
attachment_test.go | 1 year ago | |
avatar.go | 1 year ago | |
collaboration.go | 11 months ago | |
collaboration_test.go | 11 months ago | |
fork.go | 1 year ago | |
fork_test.go | 2 years ago | |
git.go | 1 year ago | |
issue.go | 10 months ago | |
language_stats.go | 1 year ago | |
main_test.go | 1 year ago | |
mirror.go | 1 year ago | |
pushmirror.go | 1 year ago | |
pushmirror_test.go | 1 year ago | |
redirect.go | 1 year ago | |
redirect_test.go | 1 year ago | |
release.go | 11 months ago | |
release_test.go | 1 year ago | |
repo.go | 11 months ago | |
repo_indexer.go | 1 year ago | |
repo_list.go | 10 months ago | |
repo_list_test.go | 11 months ago | |
repo_test.go | 11 months ago | |
repo_unit.go | 11 months ago | |
repo_unit_test.go | 2 years ago | |
search.go | 2 years ago | |
star.go | 11 months ago | |
star_test.go | 11 months ago | |
topic.go | 11 months ago | |
topic_test.go | 11 months ago | |
update.go | 1 year ago | |
upload.go | 1 year ago | |
user_repo.go | 11 months ago | |
user_repo_test.go | 11 months ago | |
watch.go | 11 months ago | |
watch_test.go | 11 months ago | |
wiki.go | 2 years ago | |
wiki_test.go | 2 years ago |