fix(server): repair recursive withUser, gofmt 2 files (golangci-lint)

This commit is contained in:
2026-05-08 12:05:35 -04:00
parent 6a444334ea
commit b5a138bb27
3 changed files with 4 additions and 6 deletions
+3 -4
View File
@@ -112,7 +112,7 @@ func (p *theAudioDBProvider) FetchAlbumCover(ctx context.Context, ref AlbumRef)
if len(resp.Album) == 0 || resp.Album[0].StrAlbumThumb == nil || *resp.Album[0].StrAlbumThumb == "" {
return nil, ErrNotFound
}
return p.client.getImage(ctx,*resp.Album[0].StrAlbumThumb)
return p.client.getImage(ctx, *resp.Album[0].StrAlbumThumb)
}
// FetchArtistArt hits /artist-mb.php?i=<mbid>, parses strArtistThumb +
@@ -160,7 +160,7 @@ func (p *theAudioDBProvider) FetchArtistArt(ctx context.Context, ref ArtistRef)
}
if thumbURL != "" {
thumb, err = p.client.getImage(ctx,thumbURL)
thumb, err = p.client.getImage(ctx, thumbURL)
if err != nil && !errors.Is(err, ErrTransient) && !errors.Is(err, ErrNotFound) {
return nil, nil, err
}
@@ -170,7 +170,7 @@ func (p *theAudioDBProvider) FetchArtistArt(ctx context.Context, ref ArtistRef)
}
}
if fanartURL != "" {
fanart, err = p.client.getImage(ctx,fanartURL)
fanart, err = p.client.getImage(ctx, fanartURL)
if err != nil && !errors.Is(err, ErrTransient) && !errors.Is(err, ErrNotFound) {
return thumb, nil, err
}
@@ -204,4 +204,3 @@ func (p *theAudioDBProvider) TestConnection(ctx context.Context) error {
}
return p.client.getJSON(ctx, p.jsonURL("album-mb.php?i="+theAudioDBTestSampleMBID), &resp)
}