fix: remove mapping redundant error (#3439)

This commit is contained in:
MarkJoyMa 2023-07-24 00:10:50 +08:00 committed by GitHub
parent ff04356704
commit 42bfa26e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -900,11 +900,6 @@ func (u *Unmarshaler) unmarshalWithFullName(m valuerWithParent, v any, fullName
typeField := baseType.Field(i)
valueField := valElem.Field(i)
if err := u.processField(typeField, valueField, m, fullName); err != nil {
if len(fullName) > 0 {
err = fmt.Errorf("%w, fullName: %s, field: %s, type: %s",
err, fullName, typeField.Name, valueField.Type().Name())
}
return err
}
}