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

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

No files matched your search

+1 -2
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