From e0b010dcd8ada7c47f3eee976eada7a490a7cdd5 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 6 Feb 2021 20:08:39 +0900 Subject: [PATCH] Remove unnecessary code --- decode_struct.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/decode_struct.go b/decode_struct.go index 961dcbd..6bb45c2 100644 --- a/decode_struct.go +++ b/decode_struct.go @@ -564,9 +564,6 @@ func (d *structDecoder) decodeStream(s *stream, p unsafe.Pointer) error { return err } s.skipWhiteSpace() - if s.char() == nul { - s.read() - } if s.char() != ':' { return errExpected("colon after object key", s.totalOffset()) }