Upstream go-playground/form state of the touched files before a6a8473901
This commit is contained in:
1 parent
457aca4500
commit
3b027bdc88
2 files changed
-35
No files matched your search
@@ -199,11 +199,6 @@ func (d *decoder) setFieldByType(current reflect.Value, namespace []byte, idx in
|
||||
return
|
||||
}
|
||||
|
||||
// Set would panic on the invalid zero Value, so nil leaves the field alone.
|
||||
if val == nil {
|
||||
return
|
||||
}
|
||||
|
||||
v.Set(reflect.ValueOf(val))
|
||||
set = true
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user