diff options
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/hook-reader.go')
| -rw-r--r-- | vendor/github.com/minio/minio-go/v7/hook-reader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/hook-reader.go b/vendor/github.com/minio/minio-go/v7/hook-reader.go index 61268a104..06dbbb74d 100644 --- a/vendor/github.com/minio/minio-go/v7/hook-reader.go +++ b/vendor/github.com/minio/minio-go/v7/hook-reader.go @@ -84,7 +84,7 @@ func (hr *hookReader) Read(b []byte) (n int, err error) { // reports the data read from the source to the hook. func newHook(source, hook io.Reader) io.Reader { if hook == nil { - return source + return &hookReader{source: source} } return &hookReader{ source: source, |
