add genre clean

This commit is contained in:
sentriz
2021-01-03 18:15:16 +00:00
committed by Senan Kelly
parent f3d42bd9aa
commit cdc6622dc7
3 changed files with 34 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -126,7 +126,7 @@ func (t *Track) RelPath() string {
}
func (t *Track) GenreStrings() []string {
var strs []string
strs := make([]string, 0, len(t.Genres))
for _, genre := range t.Genres {
strs = append(strs, genre.Name)
}
@@ -197,7 +197,7 @@ func (a *Album) IndexRightPath() string {
}
func (a *Album) GenreStrings() []string {
var strs []string
strs := make([]string, 0, len(a.Genres))
for _, genre := range a.Genres {
strs = append(strs, genre.Name)
}