mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-15 10:25:55 -07: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"
|
const artistAliasFmtStr = "%s/ws/2/artist/%s?inc=aliases"
|
||||||
|
|
||||||
func (c *MusicBrainzClient) getArtist(ctx context.Context, id uuid.UUID) (*MusicBrainzArtist, error) {
|
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)
|
err := c.getEntity(ctx, artistAliasFmtStr, id, mbzArtist)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue