mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-30 23:04:08 +02:00
format files
This commit is contained in:
@@ -78,7 +78,7 @@ func SliceNilAsEmpty[T any](a []T) []T {
|
||||
return a
|
||||
}
|
||||
|
||||
func SliceMap[T any, R any](slice []T, mapper func(it T) R) []R {
|
||||
func SliceMap[T, R any](slice []T, mapper func(it T) R) []R {
|
||||
ret := make([]R, 0)
|
||||
for _, it := range slice {
|
||||
ret = append(ret, mapper(it))
|
||||
|
||||
Reference in New Issue
Block a user