Fix lint errors

This commit is contained in:
Deluan 2024-08-21 12:15:25 -04:00
parent 1a8bef0743
commit 5d81849603
3 changed files with 3 additions and 3 deletions

View File

@ -4,11 +4,11 @@ linters:
- asciicheck - asciicheck
- bidichk - bidichk
- bodyclose - bodyclose
- copyloopvar
- dogsled - dogsled
- durationcheck - durationcheck
- errcheck - errcheck
- errorlint - errorlint
- exportloopref
- gocyclo - gocyclo
- goprintffuncname - goprintffuncname
- gosec - gosec
@ -34,3 +34,4 @@ linters-settings:
- G501 - G501
- G401 - G401
- G505 - G505
- G115 # Temporarily disabled, see discussion in https://github.com/securego/gosec/pull/1149

View File

@ -15,7 +15,7 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
type Level uint8 type Level uint32
type LevelFunc = func(ctx interface{}, msg interface{}, keyValuePairs ...interface{}) type LevelFunc = func(ctx interface{}, msg interface{}, keyValuePairs ...interface{})

View File

@ -91,7 +91,6 @@ func (api *Router) Search2(r *http.Request) (*responses.Subsonic, error) {
searchResult2 := &responses.SearchResult2{} searchResult2 := &responses.SearchResult2{}
searchResult2.Artist = make([]responses.Artist, len(as)) searchResult2.Artist = make([]responses.Artist, len(as))
for i, artist := range as { for i, artist := range as {
artist := artist
searchResult2.Artist[i] = responses.Artist{ searchResult2.Artist[i] = responses.Artist{
Id: artist.ID, Id: artist.ID,
Name: artist.Name, Name: artist.Name,