forked from mirror/go-json
chore: use reflect.Ptr
This commit is contained in:
parent
944f8be027
commit
66f8b2629d
|
@ -1010,7 +1010,7 @@ func isEmbeddedStruct(field *StructFieldCode) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
t := field.typ
|
t := field.typ
|
||||||
if t.Kind() == reflect.Pointer {
|
if t.Kind() == reflect.Ptr {
|
||||||
t = t.Elem()
|
t = t.Elem()
|
||||||
}
|
}
|
||||||
return t.Kind() == reflect.Struct
|
return t.Kind() == reflect.Struct
|
||||||
|
|
Loading…
Reference in New Issue