mirror of
https://github.com/taigrr/jety.git
synced 2026-04-01 19:08:58 -07:00
add config collapse after reading in
This commit is contained in:
1
jety.go
1
jety.go
@@ -175,6 +175,7 @@ func (c *ConfigManager) ReadInConfig() error {
|
||||
conf[lower] = ConfigMap{Key: k, Value: v}
|
||||
}
|
||||
c.mapConfig = conf
|
||||
c.collapse()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -40,5 +40,7 @@ func (c *ConfigManager) SetDefault(key string, value any) {
|
||||
} else {
|
||||
c.combinedConfig[lower] = ConfigMap{Key: key, Value: value}
|
||||
}
|
||||
} else {
|
||||
c.combinedConfig[lower] = c.mapConfig[lower]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user