Use compound assignment in /Microsoft.WSMan (#17721)

This commit is contained in:
Dmitry Volodin authored and GitHub committed 2022-07-25 21:37:32 +05:00
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))
{