Skip to content

Commit

Permalink
🐛 Fix api test failure.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jul 24, 2024
1 parent 73a0668 commit 57fd239
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reflect/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func HasFields(m any, in ...string) (out []string, err error) {
}
switch fv.Kind() {
case reflect.Ptr:
if ft.Anonymous {
inspect(fv.Interface())
continue
}
inst := fv.Interface()
mp[ft.Name] = inst
case reflect.Struct:
Expand Down

0 comments on commit 57fd239

Please sign in to comment.