mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Dont ignore close error
This commit is contained in:
@@ -216,7 +216,10 @@ func (self *remote_file) write_data(data []byte, is_last bool) (amt_written int6
|
||||
}
|
||||
amt_written = pos - base
|
||||
if is_last && self.actual_file != nil {
|
||||
self.actual_file.close()
|
||||
cerr := self.actual_file.close()
|
||||
if err == nil {
|
||||
err = cerr
|
||||
}
|
||||
self.actual_file = nil
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user