forked from mirror/go-json
Remove unnecessary code
This commit is contained in:
parent
23081eadad
commit
ab068b0858
|
@ -82,9 +82,6 @@ func (s *stream) readBuf() []byte {
|
|||
copy(s.buf, remainBuf)
|
||||
}
|
||||
remainLen := s.length - s.cursor
|
||||
if remainLen > 0 {
|
||||
remainLen-- // last char is nul
|
||||
}
|
||||
return s.buf[s.cursor+remainLen:]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue