mirror of
https://github.com/restic/restic.git
synced 2025-01-03 13:45:20 +00:00
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if w, ok := e.origWr.(io.Closer); ok {
|
|
||||||
err := w.Close()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue