fix: env key replacer and remove unused function (#5547)

This commit is contained in:
Henrique Dias
2025-11-15 08:40:37 +01:00
committed by GitHub
parent 4e9e312984
commit 13814e1119
2 changed files with 4 additions and 15 deletions

View File

@@ -534,8 +534,7 @@ func initConfig() {
v.SetEnvPrefix("FB")
v.AutomaticEnv()
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
v.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
if err := v.ReadInConfig(); err != nil {
var configParseError v.ConfigParseError