diff options
author | Joe Chen <jc@unknwon.io> | 2022-05-16 20:57:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 20:57:19 +0800 |
commit | c4b770f3053a8a9794c5916281fc0517a590b0fa (patch) | |
tree | f4659fa65def34d75c925709b2aa860c98b8870d /internal/form/form.go | |
parent | a6c53eb0683b4daf85e800193fd363826d02f10c (diff) |
chore: fix lint errors (#6951)
Diffstat (limited to 'internal/form/form.go')
-rw-r--r-- | internal/form/form.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/form/form.go b/internal/form/form.go index db6e040b..bddbd128 100644 --- a/internal/form/form.go +++ b/internal/form/form.go @@ -99,11 +99,8 @@ func validate(errs binding.Errors, data map[string]interface{}, f Form, l macaro Assign(f, data) typ := reflect.TypeOf(f) - val := reflect.ValueOf(f) - if typ.Kind() == reflect.Ptr { typ = typ.Elem() - val = val.Elem() } for i := 0; i < typ.NumField(); i++ { |