fix(config): check value

This commit is contained in:
Denis Gukov 2023-09-15 01:34:44 +02:00
parent d726ba4615
commit f553def7f2

View File

@ -256,6 +256,10 @@ func loadDefaultsToObject(obj interface{}) error {
v = reflect.Indirect(v)
}
if v.Type().Kind() != reflect.Struct {
return nil
}
for i := 0; i < t.NumField(); i++ {
fieldType := t.Field(i)
fieldValue := v.Field(i)