mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix #1864
This commit is contained in:
parent
7d5f1d6843
commit
4d064e145f
@ -111,6 +111,7 @@ func writeToFile(reader io.ReadCloser, path string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() { _ = file.Close() }()
|
||||
_, err = file.ReadFrom(reader)
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user