Skip to content

Commit 4a7413c

Browse files
committed
C#: Use Add for environment variables
1 parent 84d3532 commit 4a7413c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependabotProxy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ internal void ApplyProxy(ILogger logger, ProcessStartInfo startInfo)
6565

6666
logger.LogInfo($"Setting up Dependabot proxy at {this.Address}");
6767

68-
startInfo.EnvironmentVariables["HTTP_PROXY"] = this.Address;
69-
startInfo.EnvironmentVariables["HTTPS_PROXY"] = this.Address;
70-
startInfo.EnvironmentVariables["SSL_CERT_FILE"] = this.certFile?.FullName;
68+
startInfo.EnvironmentVariables.Add("HTTP_PROXY", this.Address);
69+
startInfo.EnvironmentVariables.Add("HTTPS_PROXY", this.Address);
70+
startInfo.EnvironmentVariables.Add("SSL_CERT_FILE", this.certFile?.FullName);
7171
}
7272
}
7373
}

0 commit comments

Comments
 (0)