Merge pull request #3129 from chengzhichao-xydt/codex/tts-close-error

fix(tts): explicitly ignore file.Close() error in write error path
This commit is contained in:
Mauro 2026-06-16 22:08:10 +02:00 committed by GitHub
commit cc4055b6d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}