mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 21:48:18 -08:00
fix: nil mbz artist
This commit is contained in:
parent
a14fc55d55
commit
bfef2c59fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue