mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-13 13:48:39 +01:00
Upgrade Go to 1.23 (#3190)
* Upgrade to Golang 1.23rc1 * Fix imports * Go 1.23 final version * Fix lint compatibility with ci-goreleaser
This commit is contained in:
parent
0c33523f45
commit
c4bd0e67fa
6 changed files with 17 additions and 15 deletions
|
|
@ -2,13 +2,13 @@ package tests
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"maps"
|
||||
"slices"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/navidrome/navidrome/utils/slice"
|
||||
"golang.org/x/exp/maps"
|
||||
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/utils/slice"
|
||||
)
|
||||
|
||||
func CreateMockMediaFileRepo() *MockMediaFileRepo {
|
||||
|
|
@ -56,7 +56,7 @@ func (m *MockMediaFileRepo) GetAll(...model.QueryOptions) (model.MediaFiles, err
|
|||
if m.err {
|
||||
return nil, errors.New("error")
|
||||
}
|
||||
values := maps.Values(m.data)
|
||||
values := slices.Collect(maps.Values(m.data))
|
||||
return slice.Map(values, func(p *model.MediaFile) model.MediaFile {
|
||||
return *p
|
||||
}), nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue