Use 'Platform.IsWindowsDesktop' instead of checking both NanoServer and IoT (#10205)

This commit is contained in:
Dongbo Wang
2019-07-25 17:24:57 -07:00
committed by Travis Plunk
parent 2ed9abc99b
commit 8f5b2c241e
@@ -23,7 +23,7 @@ namespace Microsoft.PowerShell
{
// The STA apartment state is not supported on NanoServer and Windows IoT.
// Plus, there is not need to create jump list in those environment anyways.
if (Platform.IsNanoServer || Platform.IsIoT)
if (!Platform.IsWindowsDesktop)
{
return;
}