Skip to content

Commit 15b6fd6

Browse files
committed
fix(Read): handle underlying stream isn't *os.File
1 parent 4edc9e0 commit 15b6fd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tailpipe.go

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func (f *File) Read(p []byte) (n int, err error) {
5454
}
5555
f.r = file
5656
}
57+
} else {
58+
return 0, ErrNotSupported
5759
}
5860
} else {
5961
break

0 commit comments

Comments
 (0)