From 07abe80065aa0ff3c203b2b0dcfb20c7a0a8c7c5 Mon Sep 17 00:00:00 2001 From: myOmikron Date: Wed, 25 Jan 2023 21:48:12 +0100 Subject: General cleanup and deprecation fixes --- youtube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube.go') 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 -- cgit v1.2.3