Remove unnecessary code

This commit is contained in:
Masaaki Goshima 2021-02-06 20:08:39 +09:00
parent 6f972bcc9d
commit e0b010dcd8
1 changed files with 0 additions and 3 deletions

View File

@ -564,9 +564,6 @@ func (d *structDecoder) decodeStream(s *stream, p unsafe.Pointer) error {
return err return err
} }
s.skipWhiteSpace() s.skipWhiteSpace()
if s.char() == nul {
s.read()
}
if s.char() != ':' { if s.char() != ':' {
return errExpected("colon after object key", s.totalOffset()) return errExpected("colon after object key", s.totalOffset())
} }