mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
change to uninitialize slice instead of initialized
This commit is contained in:
parent
cd2312badf
commit
c65784aa50
@ -221,9 +221,9 @@ func (c Command) defineCommands() {
|
||||
return
|
||||
}
|
||||
|
||||
audios := make([]string, len(queue.items))
|
||||
for i, file := range queue.items {
|
||||
audios[i] = file.name
|
||||
audios := make([]string, 0, len(queue.items))
|
||||
for _, file := range queue.items {
|
||||
audios = append(audios, file.name)
|
||||
}
|
||||
|
||||
searchPopup(audios, func(selected string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user