fix: remove useless type convert

pull/709/head
xqbumu 2 years ago
parent 9c824907cf
commit 5fbd8503fe
  1. 2
      errors.go

@ -61,7 +61,7 @@ func (ve ValidationErrors) Translate(ut ut.Translator) ValidationErrorsTranslati
var fe FieldError var fe FieldError
for i := 0; i < len(ve); i++ { for i := 0; i < len(ve); i++ {
fe = ve[i].(FieldError) fe = ve[i]
// // in case an Anonymous struct was used, ensure that the key // // in case an Anonymous struct was used, ensure that the key
// // would be 'Username' instead of ".Username" // // would be 'Username' instead of ".Username"

Loading…
Cancel
Save