Skip to content

Commit

Permalink
chore: specify slice size
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed May 22, 2023
1 parent 5b8f1d9 commit f5b48c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func downloadAndPlay(s *discordgo.Session, guildID, link, user string, i *discor
go deleteInteraction(s, i, c)
}

var elements []Queue.Element
var elements = make([]Queue.Element, len(splittedOut))

// We parse every track as individual json, because yt-dlp
for _, singleJSON := range splittedOut {
Expand Down

0 comments on commit f5b48c3

Please sign in to comment.