diff options
Diffstat (limited to 'src/bytes/reader.go')
| -rw-r--r-- | src/bytes/reader.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/bytes/reader.go b/src/bytes/reader.go index aa39890f3b..83826c80c4 100644 --- a/src/bytes/reader.go +++ b/src/bytes/reader.go @@ -36,9 +36,6 @@ func (r *Reader) Len() int { func (r *Reader) Size() int64 { return int64(len(r.s)) } func (r *Reader) Read(b []byte) (n int, err error) { - if len(b) == 0 { - return 0, nil - } if r.i >= int64(len(r.s)) { return 0, io.EOF } |
