Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
spezifisch committed Sep 12, 2024
1 parent fa082a5 commit 2302a9e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gui_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ func (ui *Ui) addRandomSongsToQueue(Id string, randomType string) {
if err != nil {
ui.logger.Printf("addRandomSongsToQueue %s", err.Error())
}
switch randomType{
case "random":
for _, e := range response.RandomSongs.Song {
ui.addSongToQueue(&e)
}
case "similar":
for _, e := range response.SimilarSongs.Song {
ui.addSongToQueue(&e)
}
switch randomType {
case "random":
for _, e := range response.RandomSongs.Song {
ui.addSongToQueue(&e)
}
case "similar":
for _, e := range response.SimilarSongs.Song {
ui.addSongToQueue(&e)
}
}
}

Expand Down

0 comments on commit 2302a9e

Please sign in to comment.