fix: explicitly ignore Close() errors on temp file write/sync failure paths
This commit is contained in:
1 parent
46b29a0ae9
commit
6b004f6a5f
3 files changed
+4
-4
No files matched your search
@@ -230,7 +230,7 @@ func storeInlineDataURL(
|
||||
}
|
||||
tmpPath := tmpFile.Name()
|
||||
if _, err = tmpFile.Write(decoded); err != nil {
|
||||
tmpFile.Close()
|
||||
_ = tmpFile.Close()
|
||||
_ = os.Remove(tmpPath)
|
||||
return "", fmt.Sprintf("[Tool returned inline media content (%s) but it could not be stored.]", mimeType)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user