1
0
Fork 0
mirror of https://github.com/navidrome/navidrome.git synced 2025-04-06 14:07:36 +03:00

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
- 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

View file

@ -15,7 +15,7 @@ import (
"github.com/sirupsen/logrus"
)
type Level uint8
type Level uint32
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.Artist = make([]responses.Artist, len(as))
for i, artist := range as {
artist := artist
searchResult2.Artist[i] = responses.Artist{
Id: artist.ID,
Name: artist.Name,