another quick refactor
This commit is contained in:
@@ -51,11 +51,9 @@ func TrackIDOrEmptyStr(track *subsonic.Child) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TracksToIDs(tracks []*subsonic.Child) []string {
|
func TracksToIDs(tracks []*subsonic.Child) []string {
|
||||||
ret := make([]string, len(tracks))
|
return MapSlice(tracks, func(tr *subsonic.Child) string {
|
||||||
for i, tr := range tracks {
|
return tr.ID
|
||||||
ret[i] = tr.ID
|
})
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type TrackReorderOp int
|
type TrackReorderOp int
|
||||||
|
|||||||
Reference in New Issue
Block a user