From 5fbd8503fed687f99e168450c4f2c21d8e8d78ca Mon Sep 17 00:00:00 2001 From: xqbumu Date: Sun, 31 Jul 2022 14:46:56 +0800 Subject: [PATCH] fix: remove useless type convert --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 17d3769..344090a 100644 --- a/errors.go +++ b/errors.go @@ -61,7 +61,7 @@ func (ve ValidationErrors) Translate(ut ut.Translator) ValidationErrorsTranslati var fe FieldError 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 // // would be 'Username' instead of ".Username"