From 98818fe28c89542e09877dcca6813f41f6ed3796 Mon Sep 17 00:00:00 2001 From: bvandeusen Date: Sun, 19 Apr 2026 18:07:36 +0000 Subject: [PATCH] fix(subsonic): check fmt.Fprintf return (errcheck lint) --- internal/subsonic/envelope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/subsonic/envelope.go b/internal/subsonic/envelope.go index 3e2024c4..ffbf4255 100644 --- a/internal/subsonic/envelope.go +++ b/internal/subsonic/envelope.go @@ -86,7 +86,7 @@ func writeJSONP(w http.ResponseWriter, body any, callback string) { return } w.Header().Set("Content-Type", "application/javascript; charset=utf-8") - fmt.Fprintf(w, "%s(", callback) + _, _ = fmt.Fprintf(w, "%s(", callback) _ = json.NewEncoder(w).Encode(map[string]any{"subsonic-response": body}) _, _ = io.WriteString(w, ")") }