removing unecessary type conversion

This commit is contained in:
Streppel 2019-11-27 08:47:07 -03:00 committed by GitHub
parent 691a5f5f25
commit 0849b1840e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ func (v *defaultValidator) ValidateStruct(obj interface{}) error {
v.lazyinit()
if err := v.validate.Struct(obj); err != nil {
return error(err)
return err
}
}