From b2a8a2d282dd6fa7fd922d94d62a0d0e58b22c29 Mon Sep 17 00:00:00 2001 From: David Matson Date: Wed, 22 Jan 2025 10:32:07 -0800 Subject: [PATCH] Remove dead code for Incomplete. The block here appears to be unreachable code. --- src/functions/Output.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/functions/Output.ps1 b/src/functions/Output.ps1 index 5e8c3d0ea..096f9fcef 100644 --- a/src/functions/Output.ps1 +++ b/src/functions/Output.ps1 @@ -712,16 +712,6 @@ function Get-WriteScreenPlugin ($Verbosity) { break } - - default { - if ($PesterPreference.Output.Verbosity.Value -in 'Detailed', 'Diagnostic') { - # TODO: Add actual Incomplete status as default rather than checking for null time. - if ($null -eq $_test.Duration) { - Write-PesterHostMessage -ForegroundColor $ReportTheme.Incomplete "$margin[?] $out" -NoNewLine - Write-PesterHostMessage -ForegroundColor $ReportTheme.IncompleteTime " $humanTime" - } - } - } } }