mirror of
https://github.com/gin-gonic/gin.git
synced 2025-05-21 09:26:17 +08:00
Tons of unit tests
This commit is contained in:
@ -20,8 +20,5 @@ func (_ xmlBinding) Bind(req *http.Request, obj interface{}) error {
|
||||
if err := decoder.Decode(obj); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := _validator.ValidateStruct(obj); err != nil {
|
||||
return error(err)
|
||||
}
|
||||
return nil
|
||||
return Validate(obj)
|
||||
}
|
||||
|
Reference in New Issue
Block a user