diff --git a/internal/config/env.go b/internal/config/env.go index 6f8b6396..91482197 100644 --- a/internal/config/env.go +++ b/internal/config/env.go @@ -9,12 +9,10 @@ type Environment map[string]string // Set will only set the given environment key and value if it isn't already set // within the Environment. func (e *Environment) Set(key, value string) { - env := *e - - if _, ok := env[key]; ok { + if _, ok := (*e)[key]; ok { return } - env[key] = value + (*e)[key] = value } func (e *Environment) Setenv() {