Needs != for this. Do not try to test client for functions go if there

This commit is contained in:
James Jeffrey
2017-07-06 09:18:09 -07:00
parent 7f226bc96b
commit 3087a12b83
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ func bindAndValidate(c *gin.Context, log logrus.FieldLogger, method string, wrou
wroute.Route.SetDefaults()
if err = wroute.Validate(method == http.MethodPost); err != nil {
if err = wroute.Validate(method != http.MethodPost); err != nil {
log.WithError(err).Debug(models.ErrRoutesCreate)
return err
}