aboutsummaryrefslogtreecommitdiff
path: root/internal/form/form.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-05-16 20:57:19 +0800
committerGitHub <noreply@github.com>2022-05-16 20:57:19 +0800
commitc4b770f3053a8a9794c5916281fc0517a590b0fa (patch)
treef4659fa65def34d75c925709b2aa860c98b8870d /internal/form/form.go
parenta6c53eb0683b4daf85e800193fd363826d02f10c (diff)
chore: fix lint errors (#6951)
Diffstat (limited to 'internal/form/form.go')
-rw-r--r--internal/form/form.go3
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++ {