cmSystemTools: Drop redundant condition in RunSingleCommand
The output processing loop is already guarded by a condition so we do not need to repeat the condition inside the loop.
This commit is contained in:
parent
ffa2a8c967
commit
dc039cc02c
|
@ -695,8 +695,6 @@ bool cmSystemTools::RunSingleCommand(std::vector<std::string>const& command,
|
||||||
(captureStdOut || captureStdErr || outputflag != OUTPUT_NONE))
|
(captureStdOut || captureStdErr || outputflag != OUTPUT_NONE))
|
||||||
{
|
{
|
||||||
while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)) > 0)
|
while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)) > 0)
|
||||||
{
|
|
||||||
if(captureStdOut || captureStdErr || outputflag != OUTPUT_NONE)
|
|
||||||
{
|
{
|
||||||
// Translate NULL characters in the output into valid text.
|
// Translate NULL characters in the output into valid text.
|
||||||
// Visual Studio 7 puts these characters in the output of its
|
// Visual Studio 7 puts these characters in the output of its
|
||||||
|
@ -708,7 +706,7 @@ bool cmSystemTools::RunSingleCommand(std::vector<std::string>const& command,
|
||||||
data[i] = ' ';
|
data[i] = ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(pipe == cmsysProcess_Pipe_STDOUT ||
|
if(pipe == cmsysProcess_Pipe_STDOUT ||
|
||||||
(pipe == cmsysProcess_Pipe_STDERR &&
|
(pipe == cmsysProcess_Pipe_STDERR &&
|
||||||
captureStdOut == captureStdErr))
|
captureStdOut == captureStdErr))
|
||||||
|
|
Loading…
Reference in New Issue