diff options
Diffstat (limited to 'modules/web/middleware/binding.go')
-rw-r--r-- | modules/web/middleware/binding.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go index cbdb29b812..9b0b1d7784 100644 --- a/modules/web/middleware/binding.go +++ b/modules/web/middleware/binding.go @@ -93,11 +93,9 @@ func Validate(errs binding.Errors, data map[string]interface{}, f Form, l transl AssignForm(f, data) typ := reflect.TypeOf(f) - val := reflect.ValueOf(f) if typ.Kind() == reflect.Ptr { typ = typ.Elem() - val = val.Elem() } if field, ok := typ.FieldByName(errs[0].FieldNames[0]); ok { |