mirror of https://github.com/goccy/go-json.git
Remove unnecessary code
This commit is contained in:
parent
6f972bcc9d
commit
e0b010dcd8
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue