mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Remove check for stdout redirection
This commit is contained in:
@@ -199,12 +199,8 @@ namespace Semmle.Autobuild.Shared
|
||||
if (workingDirectory is not null)
|
||||
pi.WorkingDirectory = workingDirectory;
|
||||
|
||||
// Environment variables can only be used when not redirecting stdout
|
||||
if (!redirectStandardOutput)
|
||||
{
|
||||
if (environment is not null)
|
||||
environment.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
|
||||
}
|
||||
environment?.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
|
||||
|
||||
return pi;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user