Skip to content

Commit

Permalink
Remove f.Anonymous check
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rinaldi authored and Alessandro Rinaldi committed Sep 27, 2021
1 parent 209b1fb commit 48c0cea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,6 @@ func fieldIndexByName(t reflect.Type, name string) []int {
continue
}

if f.Anonymous {
if a := fieldIndexByName(f.Type, name); a != nil {
return append([]int{i}, a...)
}
}

if a := strings.SplitN(f.Tag.Get("json"), ",", 2); a[0] != "" {
if a[0] == "-" {
continue
Expand Down

0 comments on commit 48c0cea

Please sign in to comment.