chore: use reflect.Ptr

This commit is contained in:
Nao Yonashiro 2022-04-28 20:30:06 +09:00
parent 944f8be027
commit 66f8b2629d
1 changed files with 1 additions and 1 deletions

View File

@ -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