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