Revert "replace env underscore to dot (#1229)" (#1235)

This reverts commit 38c9def445.
pull/1240/head
Tony Chen 3 years ago committed by GitHub
parent dca963a236
commit cb7fc2d72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      config/env/env.go

7
config/env/env.go vendored

@ -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),

Loading…
Cancel
Save