diff options
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++ { |