Skip to content

Commit

Permalink
trying to fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lomereiter committed May 28, 2024
1 parent b6e2fdd commit a0a3863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/ctrlsubsonic/handlers_by_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c *Controller) ServeGetArtists(r *http.Request) *spec.Response {
// [a-z#] -> 27
indexMap := make(map[string]*spec.Index, 27)
resp := make([]*spec.Index, 0, 27)
for _, artist := range artists {
for i, artist := range artists {
key := lowerUDecOrHash(artist.IndexName())
if _, ok := indexMap[key]; !ok {
indexMap[key] = &spec.Index{
Expand All @@ -59,9 +59,9 @@ func (c *Controller) ServeGetArtists(r *http.Request) *spec.Response {
resp = append(resp, indexMap[key])
}
if artist.ImageURL != "" {
artist.Info = &db.ArtistInfo{ImageURL: artist.ImageURL}
artists[i].Info = &db.ArtistInfo{ImageURL: artist.ImageURL}
}
indexMap[key].Artists = append(indexMap[key].Artists, spec.NewArtistByTags(&artist.Artist))
indexMap[key].Artists = append(indexMap[key].Artists, spec.NewArtistByTags(&artists[i].Artist))
}
sub := spec.NewResponse()
sub.Artists = &spec.Artists{
Expand Down

0 comments on commit a0a3863

Please sign in to comment.