mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 10:47:19 +03:00
Fix lint errors
This commit is contained in:
parent
1a8bef0743
commit
5d81849603
@ -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
|
||||||
|
@ -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{})
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user