mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
doc: update some descriptions
This commit is contained in:
1 parent
49021f167c
commit
21923af1cd
5 files changed
+18
-18
No files matched your search
@@ -81,9 +81,9 @@ func (r *chunkedReader) Read(b []byte) (int, error) {
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
r.leftBytes = int(binary.BigEndian.Uint16(r.buf[:lenSize]))
|
||||
|
||||
// if length == 0, then this is the end
|
||||
r.leftBytes = int(binary.BigEndian.Uint16(r.buf[:lenSize]))
|
||||
if r.leftBytes == 0 {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user