🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Add exportloopref linter
Deluan7b0a8f47def1
diff --git a/.golangci.yml b/.golangci.ymlindex 5cebc67dc..1f6eed68b 100644--- a/.golangci.yml+++ b/.golangci.yml@@ -7,6 +7,7 @@ linters:- depguard- dogsled- errcheck+ - exportloopref- gocyclo- goprintffuncname- gosecdiff --git a/server/subsonic/searching.go b/server/subsonic/searching.goindex b1297776e..9fca9c4c9 100644--- a/server/subsonic/searching.go+++ b/server/subsonic/searching.go@@ -109,6 +109,7 @@ func (c *SearchingController) Search2(w http.ResponseWriter, r *http.Request) (*searchResult2 := &responses.SearchResult2{}searchResult2.Artist = make([]responses.Artist, len(as))for i, artist := range as {+ artist := artistsearchResult2.Artist[i] = responses.Artist{Id: artist.ID,Name: artist.Name,@@ -116,7 +117,7 @@ func (c *SearchingController) Search2(w http.ResponseWriter, r *http.Request) (*UserRating: artist.Rating,}if artist.Starred {- searchResult2.Artist[i].Starred = &artist.StarredAt+ searchResult2.Artist[i].Starred = &as[i].StarredAt}}searchResult2.Album = childrenFromAlbums(r.Context(), als)