mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(config): check value
This commit is contained in:
parent
d726ba4615
commit
f553def7f2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user