mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +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
|
amt_written = pos - base
|
||||||
if is_last && self.actual_file != nil {
|
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
|
self.actual_file = nil
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user