fix(tts): explicitly ignore file.Close() error in write error path
This commit is contained in:
parent
cf67dd3851
commit
2f8c462366
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue