Skip to content

Commit

Permalink
Fix issue #199
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenX2018 committed May 28, 2020
1 parent 5754b3e commit 277c1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Expand Up @@ -916,7 +916,7 @@ func internalGet(data []byte, keys ...string) (value []byte, dataType ValueType,
value = value[1 : len(value)-1]
}

return value, dataType, offset, endOffset, nil
return value[:len(value):len(value)], dataType, offset, endOffset, nil
}

// ArrayEach is used when iterating arrays, accepts a callback function with the same return arguments as `Get`.
Expand Down

0 comments on commit 277c1bf

Please sign in to comment.