mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Use compound assignment in /Microsoft.WSMan (#17721)
This commit is contained in:
1 parent
a468fb1f49
commit
8af18fa4ea
1 file changed
+1
-4
@@ -360,10 +360,7 @@ namespace Microsoft.WSMan.Management
|
||||
protected override void BeginProcessing()
|
||||
{
|
||||
WSManHelper helper = new WSManHelper(this);
|
||||
if (computername == null)
|
||||
{
|
||||
computername = "localhost";
|
||||
}
|
||||
computername ??= "localhost";
|
||||
|
||||
if (this.SessionState.Path.CurrentProviderLocation(WSManStringLiterals.rootpath).Path.StartsWith(WSManStringLiterals.rootpath + ":" + WSManStringLiterals.DefaultPathSeparator + computername, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user