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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment