1
0
mirror of https://github.com/restic/restic.git synced 2024-06-22 07:26:38 +02: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
}