diff --git a/internal/api/provider/spotify.go b/internal/api/provider/spotify.go index ebd226fc6..e6d2f383c 100644 --- a/internal/api/provider/spotify.go +++ b/internal/api/provider/spotify.go @@ -89,13 +89,13 @@ func (g spotifyProvider) GetUserData(ctx context.Context, tok *oauth2.Token) (*U // Spotify returns a list of avatars, we want to use the largest one if len(u.Avatars) >= 1 { largestAvatar := u.Avatars[0] - + for _, avatar := range u.Avatars { - if avatar.Height * avatar.Width > largestAvatar.Height * largestAvatar.Width { + if avatar.Height*avatar.Width > largestAvatar.Height*largestAvatar.Width { largestAvatar = avatar } } - + avatarURL = largestAvatar.Url }