Skip to content

🎧 Your Personal Streaming Service

Fix lint errors

Deluan5d818496030f
diff --git a/.golangci.yml b/.golangci.yml
index 59585d6bd..9710cd813 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,11 +4,11 @@ linters:
- asciicheck
- bidichk
- bodyclose
+ - copyloopvar
- dogsled
- durationcheck
- errcheck
- errorlint
- - exportloopref
- gocyclo
- goprintffuncname
- gosec
@@ -34,3 +34,4 @@ linters-settings:
- G501
- G401
- G505
+ - G115 # Temporarily disabled, see discussion in https://github.com/securego/gosec/pull/1149
diff --git a/log/log.go b/log/log.go
index 32462bf5e..fdb295957 100644
--- a/log/log.go
+++ b/log/log.go
@@ -15,7 +15,7 @@ import (
"github.com/sirupsen/logrus"
)
-type Level uint8
+type Level uint32
type LevelFunc = func(ctx interface{}, msg interface{}, keyValuePairs ...interface{})
diff --git a/server/subsonic/searching.go b/server/subsonic/searching.go
index 7e94b41a8..3437c80cf 100644
--- a/server/subsonic/searching.go
+++ b/server/subsonic/searching.go
@@ -91,7 +91,6 @@ func (api *Router) Search2(r *http.Request) (*responses.Subsonic, error) {
searchResult2 := &responses.SearchResult2{}
searchResult2.Artist = make([]responses.Artist, len(as))
for i, artist := range as {
- artist := artist
searchResult2.Artist[i] = responses.Artist{
Id: artist.ID,
Name: artist.Name,