From 371feaf0cb009dfc0cd19293fe678368335ff7d5 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 22 Jun 2026 00:46:30 -0700 Subject: [PATCH] fix: initialize files as empty slice instead of nil var var files []string marshals to JSON null, breaking the frontend which expects an array. Using files := []string{} ensures []. --- serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve.go b/serve.go index 5cdb4b5..ec2df45 100644 --- a/serve.go +++ b/serve.go @@ -279,7 +279,7 @@ func handleListWavs(w http.ResponseWriter, r *http.Request) { return } - var files []string + files := []string{} for _, e := range entries { if !e.IsDir() && strings.HasSuffix(strings.ToLower(e.Name()), ".wav") { files = append(files, e.Name())