forked from TrueCloudLab/restic
EncryptWriter: do not close underlying writer
This commit is contained in:
parent
68911ef11d
commit
259389f7d1
1 changed files with 0 additions and 7 deletions
7
key.go
7
key.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue