mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:27:46 +00:00
Make ReadCloser public
This commit is contained in:
@@ -125,6 +125,11 @@ func memCreate(be *MemoryBackend) (Blob, error) {
|
||||
return blob, nil
|
||||
}
|
||||
|
||||
// ReadCloser wraps a reader and adds a noop Close method.
|
||||
func ReadCloser(rd io.Reader) io.ReadCloser {
|
||||
return readCloser{rd}
|
||||
}
|
||||
|
||||
// readCloser wraps a reader and adds a noop Close method.
|
||||
type readCloser struct {
|
||||
io.Reader
|
||||
|
Reference in New Issue
Block a user