Skip to content

Commit 695160d

Browse files
committed
Remove check for stdout redirection
1 parent ce937e7 commit 695160d

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)