Skip to content

Commit

Permalink
Revert "replace env underscore to dot (#1229)" (#1235)
Browse files Browse the repository at this point in the history
This reverts commit 38c9def.
  • Loading branch information
tonybase committed Jul 23, 2021
1 parent dca963a commit cb7fc2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ func (e *env) load(envStrings []string) []*config.KeyValue {
k = k[1:]
}
}
if strings.Contains(k, "_") {
kv = append(kv, &config.KeyValue{
Key: strings.Replace(k, "_", ".", -1),
Value: []byte(v),
})
}

kv = append(kv, &config.KeyValue{
Key: k,
Value: []byte(v),
Expand Down

0 comments on commit cb7fc2d

Please sign in to comment.