Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnake0 committed Jan 12, 2020
1 parent f2d21a9 commit 92b0f00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iterator_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ func (it *Iterator) readObjectFieldAsSlice(buf []byte) (
func (it *Iterator) readObjectField() (bool, string, error) {
more, field, err := it.readObjectFieldAsSlice(it.tmpBuffer[:0])
it.tmpBuffer = field
return more, string(field), err
if err != nil {
return false, "", err
}
return more, string(field), nil
}

func (it *Iterator) skipObjectField() (bool, error) {
Expand Down

0 comments on commit 92b0f00

Please sign in to comment.