mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 19:01:27 +00:00
Dont ignore close error
This commit is contained in:
parent
50b146bb04
commit
ecf451dd56
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue