updating github.com/onsi/gomega to v1.5.0

This commit is contained in:
Davanum Srinivas
2019-06-14 11:20:57 -04:00
parent 8629f7fa25
commit 37479f975e
50 changed files with 55 additions and 71 deletions

View File

@@ -118,12 +118,7 @@ func (m *FieldsMatcher) matchFields(actual interface{}) (errs []error) {
return nil
}
var field interface{}
if val.Field(i).IsValid() {
field = val.Field(i).Interface()
} else {
field = reflect.Zero(typ.Field(i).Type)
}
field := val.Field(i).Interface()
match, err := matcher.Match(field)
if err != nil {