2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-27 12:42:49 +00:00

EncryptWriter: do not close underlying writer

This commit is contained in:
Alexander Neumann 2015-02-16 00:22:46 +01:00
parent 68911ef11d
commit 259389f7d1

7
key.go
View File

@ -350,13 +350,6 @@ func (e *encryptWriter) Close() error {
return err
}
if w, ok := e.origWr.(io.Closer); ok {
err := w.Close()
if err != nil {
return err
}
}
return nil
}