Fix lint error

This commit is contained in:
Deluan 2021-07-16 21:11:38 -04:00 committed by Deluan Quintão
parent a0cd585401
commit 3a356499ae
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func (s *mediaFileMapper) mapGenres(genres []string) (string, model.Genres) {
var all []string
for i := range genres {
gs := strings.FieldsFunc(genres[i], func(r rune) bool {
return strings.IndexRune(conf.Server.Scanner.GenreSeparators, r) != -1
return strings.ContainsRune(conf.Server.Scanner.GenreSeparators, r)
})
for j := range gs {
g := strings.TrimSpace(gs[j])