Skip to content

Commit 72688c5

Browse files
committed
fix build
1 parent 2aeea12 commit 72688c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buffer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ func (b *buffer) fill(need int) (err error) {
4242
b.buf = append(b.buf, 0)
4343
b.buf = b.buf[:cap(b.buf)]
4444

45-
if cap(b.buf) < size {
45+
if cap(b.buf) < need {
4646
continue
4747
}
48-
return
48+
break
4949
}
5050
}
5151

0 commit comments

Comments
 (0)