From 2f8c46236630ddae8c42ac2a6310a65e1593abe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=BA=E8=B6=850668000959?= Date: Mon, 15 Jun 2026 20:30:09 +0800 Subject: [PATCH] fix(tts): explicitly ignore file.Close() error in write error path --- pkg/audio/tts/tts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/audio/tts/tts.go b/pkg/audio/tts/tts.go index 202ddc06..fc8a36ea 100644 --- a/pkg/audio/tts/tts.go +++ b/pkg/audio/tts/tts.go @@ -146,7 +146,7 @@ func SynthesizeAndStore( _, err = io.Copy(file, stream) if err != nil { - file.Close() + _ = file.Close() return "", fmt.Errorf("failed to write tts audio: %w", err) }