From 5172a4d6ec381ae3e6e4453da3b0b2907e83ac2a Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 25 Apr 2025 15:41:57 +0100 Subject: [PATCH] Go: Remove check from `getEnvVars` --- go/extractor/util/registryproxy.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/go/extractor/util/registryproxy.go b/go/extractor/util/registryproxy.go index 85bc03a62a8..35c592964a3 100644 --- a/go/extractor/util/registryproxy.go +++ b/go/extractor/util/registryproxy.go @@ -48,13 +48,6 @@ func parseRegistryConfigs(str string) ([]RegistryConfig, error) { } func getEnvVars() []string { - // If `proxy_vars` has been initialised, then we have already performed - // these checks and don't need to do so again. We assume that the environment - // variables are constant throughout the run of the autobuilder. - if proxy_vars != nil { - return proxy_vars - } - var result []string if proxy_host, proxy_host_set := os.LookupEnv(PROXY_HOST); proxy_host_set {