mirror of
https://github.com/Fishwaldo/validator.git
synced 2025-03-15 11:41:32 +00:00
removing unecessary type conversion
This commit is contained in:
parent
691a5f5f25
commit
0849b1840e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue