Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 20, 2021
1 parent a0cd585 commit 3a35649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 3a35649

Please sign in to comment.