Skip config params with no values (#62)
This commit is contained in:
parent
a8ed1e25b4
commit
4f36e447c3
|
|
@ -79,6 +79,9 @@ func NewFromMap(m map[string]string) *Config {
|
|||
value = structField.Default
|
||||
}
|
||||
|
||||
if value == "" {
|
||||
continue
|
||||
}
|
||||
err := processField(value, structField.Field)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue