Skip to content

Commit d627358

Browse files
authored
Merge pull request github#12453 from github/mbg/csharp/fix-env-prop
2 parents b3fa844 + 695160d commit d627358

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

csharp/autobuilder/Semmle.Autobuild.Shared/BuildActions.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,8 @@ private static ProcessStartInfo GetProcessStartInfo(string exe, string arguments
199199
if (workingDirectory is not null)
200200
pi.WorkingDirectory = workingDirectory;
201201

202-
// Environment variables can only be used when not redirecting stdout
203-
if (!redirectStandardOutput)
204-
{
205-
if (environment is not null)
206-
environment.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
207-
}
202+
environment?.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
203+
208204
return pi;
209205
}
210206

0 commit comments

Comments
 (0)