forked from Ivasoft/traefik
Replace go-bindata with Go embed
Co-authored-by: nrwiersma <nick@wiersma.co.za>
This commit is contained in:
@@ -160,9 +160,7 @@ func reset(field reflect.Value, name string) error {
|
||||
}
|
||||
}
|
||||
case reflect.Interface:
|
||||
if !field.IsNil() {
|
||||
return reset(field.Elem(), "")
|
||||
}
|
||||
return fmt.Errorf("reset not supported for interface type (for %s field)", name)
|
||||
default:
|
||||
// Primitive type
|
||||
field.Set(reflect.Zero(field.Type()))
|
||||
|
||||
Reference in New Issue
Block a user