Set DefinedDefault empty to false
This commit is contained in:
parent
b1394b76a5
commit
d549c57176
@ -60,11 +60,11 @@ func (c *Config) DefineDefault(key string, val string, dtype DataType) {
|
||||
entry, ok := c.env[upper]
|
||||
if ok {
|
||||
if entry.unset {
|
||||
entry.empty = false
|
||||
entry.value = val
|
||||
entry.dtype = dtype
|
||||
c.env[upper] = entry
|
||||
}
|
||||
entry.dtype = dtype
|
||||
entry.empty = false
|
||||
c.env[upper] = entry
|
||||
} else {
|
||||
var entry cEntry
|
||||
entry.dtype = dtype
|
||||
|
Loading…
Reference in New Issue
Block a user