aboutsummaryrefslogtreecommitdiff
path: root/youtube.go
diff options
context:
space:
mode:
Diffstat (limited to 'youtube.go')
-rw-r--r--youtube.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube.go b/youtube.go
index 547e555..0b55f68 100644
--- a/youtube.go
+++ b/youtube.go
@@ -34,7 +34,7 @@ func (b *YoutubeBackend) Search(pattern string) []Song {
llog.Error("youtube-dl failed with: %s", err)
}
- songs := []Song{}
+ songs := make([]Song, 0)
for _, l := range strings.Split(string(results), "\n") {
if l == "" {
continue