diff --git a/checker/nature/utils.go b/checker/nature/utils.go index 755c2e08..45b993d9 100644 --- a/checker/nature/utils.go +++ b/checker/nature/utils.go @@ -52,8 +52,6 @@ func (s *structData) structField(c *Cache, parentEmbed *structData, name string) // Lookup own fields first. for ; s.ownIdx < s.numField; s.ownIdx++ { field := s.rType.Field(s.ownIdx) - // BUG: we should skip if !field.IsExported() here - if field.Anonymous && s.anonIdx < 0 { // start iterating anon fields on the first instead of zero s.anonIdx = s.ownIdx