Skip to content
Snippets Groups Projects
Commit 4f36e447 authored by Murat Kabilov's avatar Murat Kabilov Committed by GitHub
Browse files

Skip config params with no values (#62)

parent a8ed1e25
Branches
Tags
No related merge requests found
...@@ -79,6 +79,9 @@ func NewFromMap(m map[string]string) *Config { ...@@ -79,6 +79,9 @@ func NewFromMap(m map[string]string) *Config {
value = structField.Default value = structField.Default
} }
if value == "" {
continue
}
err := processField(value, structField.Field) err := processField(value, structField.Field)
if err != nil { if err != nil {
panic(err) panic(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment