We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94f7e5e commit bd91926Copy full SHA for bd91926
1 file changed
hook-reader.go
@@ -84,7 +84,7 @@ func (hr *hookReader) Read(b []byte) (n int, err error) {
84
// reports the data read from the source to the hook.
85
func newHook(source, hook io.Reader) io.Reader {
86
if hook == nil {
87
- return source
+ return &hookReader{source: source}
88
}
89
return &hookReader{
90
source: source,
0 commit comments