update map

This commit is contained in:
Roy Olav Purser 2021-03-23 13:52:30 +01:00
parent 297f72dd97
commit cb18e15022
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -91,9 +91,11 @@ func (c *Config) Parse() {
if v.empty { if v.empty {
if v.unset { if v.unset {
v.parsed.err = errors.New(fmt.Sprintf("Environment variable %s not found. It should have been of type %s", k, v.dtype)) v.parsed.err = errors.New(fmt.Sprintf("Environment variable %s not found. It should have been of type %s", k, v.dtype))
c.env[k] = v
} }
} else { } else {
v.parsed = parser(v.value) v.parsed = parser(v.value)
c.env[k] = v
} }
} }
} }