From bfef2c59fb6656669e2a60426f706a85a5ed23be Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Thu, 12 Jun 2025 18:02:55 -0400 Subject: [PATCH] fix: nil mbz artist --- internal/mbz/artist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mbz/artist.go b/internal/mbz/artist.go index e35f625..8ebeb2e 100644 --- a/internal/mbz/artist.go +++ b/internal/mbz/artist.go @@ -25,7 +25,7 @@ type MusicBrainzArtistAlias struct { const artistAliasFmtStr = "%s/ws/2/artist/%s?inc=aliases" func (c *MusicBrainzClient) getArtist(ctx context.Context, id uuid.UUID) (*MusicBrainzArtist, error) { - var mbzArtist *MusicBrainzArtist + mbzArtist := new(MusicBrainzArtist) err := c.getEntity(ctx, artistAliasFmtStr, id, mbzArtist) if err != nil { return nil, err