Skip to content

Commit

Permalink
ci: re-format files (supabase#1611)
Browse files Browse the repository at this point in the history
Re-formats the files from PR supabase#1209.
  • Loading branch information
hf authored Jun 6, 2024
1 parent 4738378 commit 7e3867e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/api/provider/spotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7e3867e

Please sign in to comment.