mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: Fix/improve comment about environment variable preservation
This commit is contained in:
@@ -133,7 +133,8 @@ func ApplyProxyEnvVars(cmd *exec.Cmd) {
|
||||
}
|
||||
|
||||
// If the proxy is configured, `proxy_vars` will be not `nil`. We append those
|
||||
// variables Preserve environment variables
|
||||
// variables to the existing environment to preserve those environment variables.
|
||||
// If `cmd.Env` is not changed, then the existing environment is also preserved.
|
||||
if proxy_vars != nil {
|
||||
cmd.Env = append(os.Environ(), proxy_vars...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user