mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 11:28:54 +00:00
sftp: ignore error
This commit is contained in:
parent
554013ca9f
commit
9271b3662a
@ -294,7 +294,7 @@ func (r *SFTP) Save(h restic.Handle, rd io.Reader) (err error) {
|
||||
// save data
|
||||
_, err = io.Copy(f, rd)
|
||||
if err != nil {
|
||||
f.Close()
|
||||
_ = f.Close()
|
||||
return errors.Wrap(err, "Write")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user