StopJobCommand: Remove Unreachable Code (#5091)

This code will never get executed, and its logic is
duplicated in the HandleStopJobCompleted() method.
This commit is contained in:
Travis Kinney
2017-10-16 10:06:32 -07:00
committed by Mike Richmond
parent 486fb97123
commit 52f9125aba
@@ -161,17 +161,6 @@ namespace Microsoft.PowerShell.Commands
else
{
job.StopJob();
var parentJob = job as ContainerParentJob;
if (parentJob != null && parentJob.ExecutionError.Count > 0)
{
foreach (
var e in
parentJob.ExecutionError.Where(
e => e.FullyQualifiedErrorId == "ContainerParentJobStopError"))
{
WriteError(e);
}
}
}
}
}