diff --git a/reader.go b/reader.go index a1d85a2..e0a6d60 100644 --- a/reader.go +++ b/reader.go @@ -60,10 +60,8 @@ func (this *Reader) fillBuffer() int { // track any reader error / EOF if err != nil { this.err = err - return -1 - } else { - return bytesRead } + return bytesRead } // implement the io.Reader interface