fix: removed unnecessary cast so we can mock ValidationErrors (#980) (#981)

master
Joselito Viveiros Nogueira Filho 2 years ago committed by GitHub
parent b43d437012
commit e9f2d9f21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      errors.go

@ -44,12 +44,9 @@ func (ve ValidationErrors) Error() string {
buff := bytes.NewBufferString("")
var fe *fieldError
for i := 0; i < len(ve); i++ {
fe = ve[i].(*fieldError)
buff.WriteString(fe.Error())
buff.WriteString(ve[i].Error())
buff.WriteString("\n")
}

Loading…
Cancel
Save