fillBuffer() should not return -1 when EOF
This commit is contained in:
parent
331deca0a8
commit
9ec1b936e5
@ -60,10 +60,8 @@ func (this *Reader) fillBuffer() int {
|
|||||||
// track any reader error / EOF
|
// track any reader error / EOF
|
||||||
if err != nil {
|
if err != nil {
|
||||||
this.err = err
|
this.err = err
|
||||||
return -1
|
|
||||||
} else {
|
|
||||||
return bytesRead
|
|
||||||
}
|
}
|
||||||
|
return bytesRead
|
||||||
}
|
}
|
||||||
|
|
||||||
// implement the io.Reader interface
|
// implement the io.Reader interface
|
||||||
|
Loading…
Reference in New Issue
Block a user