diff options
| -rw-r--r-- | localBackend.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/localBackend.go b/localBackend.go index 129be35..8afdda8 100644 --- a/localBackend.go +++ b/localBackend.go @@ -138,7 +138,8 @@ func advancedQuery(patterns map[string]string) string { query_parts := []string{} for _, comp := range []string{"title", "album", "artist"} { if pattern, ok := patterns[comp]; ok { - query_parts = append(query_parts, fmt.Sprintf("%s LIKE '%%%s%%'", strings.Title(comp), pattern)) + titleComp := strings.Title(comp) //nolint:staticcheck + query_parts = append(query_parts, fmt.Sprintf("%s LIKE '%%%s%%'", titleComp, pattern)) } } |
