add config collapse after reading in

This commit is contained in:
2023-11-03 03:01:51 -07:00
parent e84645ccfa
commit ee74c94359
2 changed files with 3 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ func (c *ConfigManager) ReadInConfig() error {
conf[lower] = ConfigMap{Key: k, Value: v}
}
c.mapConfig = conf
c.collapse()
return nil
}

View File

@@ -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]
}
}