Skip to content

Commit 06127ae

Browse files
committed
helpers: remove unused allEnvKeys
1 parent 2d08573 commit 06127ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/provider/helpers.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,10 @@ func overrideOptionsFromExtraEnv(opts *eboptions.Options, extraEnv map[string]st
208208
// It will not set certain options, such as ENVBUILDER_CACHE_REPO and ENVBUILDER_GIT_URL.
209209
// It will also not handle legacy Envbuilder options (i.e. those not prefixed with ENVBUILDER_).
210210
func computeEnvFromOptions(opts eboptions.Options, extraEnv map[string]string) map[string]string {
211-
allEnvKeys := make(map[string]struct{})
212211
for _, opt := range opts.CLI() {
213212
if opt.Env == "" {
214213
continue
215214
}
216-
allEnvKeys[opt.Env] = struct{}{}
217215
}
218216

219217
computed := make(map[string]string)

0 commit comments

Comments
 (0)