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:
commit
cc4055b6d4
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ func SynthesizeAndStore(
|
||||||
|
|
||||||
_, err = io.Copy(file, stream)
|
_, err = io.Copy(file, stream)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
file.Close()
|
_ = file.Close()
|
||||||
return "", fmt.Errorf("failed to write tts audio: %w", err)
|
return "", fmt.Errorf("failed to write tts audio: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue