mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user