Skip to content

Commit 8aea111

Browse files
jborean93iSazonov
authored andcommitted
Update src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
Co-authored-by: Ilya <darpa@yandex.ru>
1 parent ad8d13b commit 8aea111

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,7 @@ public void PushRunspace(Runspace runspace)
629629
return;
630630
}
631631

632-
RemoteRunspace remoteRunspace = runspace as RemoteRunspace;
633-
if (remoteRunspace is not RemoteRunspace remoteRunspace)
632+
if (runspace is not RemoteRunspace remoteRunspace)
634633
{
635634
throw new ArgumentException(ConsoleHostStrings.PushRunspaceNotRemote, nameof(runspace));
636635
}

0 commit comments

Comments
 (0)