Skip to content

Commit 79daea0

Browse files
committed
Remove deprecated catch
These colors can be set now.
1 parent 4210513 commit 79daea0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/Microsoft.PowerShell.Commands.Utility/commands/utility/WriteConsoleCmdlet.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ protected override void ProcessRecord()
170170
// Expected if the host is not interactive, or doesn't have Foreground / Background
171171
// colours.
172172
}
173-
catch (System.PlatformNotSupportedException)
174-
{
175-
// TODO:PSL Support setting these colors. Expected
176-
// exception on non-windows CoreCLR for now.
177-
}
178173

179174
this.WriteInformation(informationMessage, new string[] { "PSHOST" });
180175
this.Host.UI.TranscribeResult(result);

0 commit comments

Comments
 (0)