Codebase list golang-gomega / 25690e2
remove redundant validity check Xander Flood authored 5 years ago William Martin committed 5 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
117117 return nil
118118 }
119119
120 var field interface{}
121 if val.Field(i).IsValid() {
122 field = val.Field(i).Interface()
123 } else {
124 field = reflect.Zero(typ.Field(i).Type)
125 }
120 field := val.Field(i).Interface()
126121
127122 match, err := matcher.Match(field)
128123 if err != nil {