File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,7 @@ func (s *Stream) skipObject(depth int64) error {
280
280
if char (p , cursor ) == nul {
281
281
s .cursor = cursor
282
282
if s .read () {
283
- _ , cursor , p = s .statForRetry ()
284
- cursor ++
283
+ _ , cursor , p = s .stat ()
285
284
continue
286
285
}
287
286
return errors .ErrUnexpectedEndOfJSON ("string of object" , cursor )
@@ -344,8 +343,7 @@ func (s *Stream) skipArray(depth int64) error {
344
343
if char (p , cursor ) == nul {
345
344
s .cursor = cursor
346
345
if s .read () {
347
- _ , cursor , p = s .statForRetry ()
348
- cursor ++
346
+ _ , cursor , p = s .stat ()
349
347
continue
350
348
}
351
349
return errors .ErrUnexpectedEndOfJSON ("string of object" , cursor )
@@ -403,8 +401,7 @@ func (s *Stream) skipValue(depth int64) error {
403
401
if char (p , cursor ) == nul {
404
402
s .cursor = cursor
405
403
if s .read () {
406
- _ , cursor , p = s .statForRetry ()
407
- cursor ++
404
+ _ , cursor , p = s .stat ()
408
405
continue
409
406
}
410
407
return errors .ErrUnexpectedEndOfJSON ("value of string" , s .totalOffset ())
You can’t perform that action at this time.
0 commit comments