mirror of
https://github.com/json-iterator/go.git
synced 2025-01-20 18:48:32 +02:00
Update feature_adapter.go
This commit is contained in:
parent
0f5379494a
commit
67be6df2b1
@ -17,8 +17,7 @@ func Unmarshal(data []byte, v interface{}) error {
|
||||
typ := reflect.TypeOf(v)
|
||||
if typ.Kind() != reflect.Ptr {
|
||||
// return non-pointer error
|
||||
err = errors.New("the second param must be ptr type")
|
||||
return
|
||||
return errors.New("the second param must be ptr type")
|
||||
}
|
||||
iter.ReadVal(v)
|
||||
if iter.head == iter.tail {
|
||||
|
Loading…
x
Reference in New Issue
Block a user