2
2
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:
Alexander Neumann 2017-05-11 21:53:57 +02:00
parent 554013ca9f
commit 9271b3662a

View File

@ -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")
}