Skip to content

Commit

Permalink
chore: use reflect.Ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
orisano committed Apr 28, 2022
1 parent 944f8be commit 66f8b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/encoder/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ func isEmbeddedStruct(field *StructFieldCode) bool {
return false
}
t := field.typ
if t.Kind() == reflect.Pointer {
if t.Kind() == reflect.Ptr {
t = t.Elem()
}
return t.Kind() == reflect.Struct
Expand Down

0 comments on commit 66f8b26

Please sign in to comment.