Skip to content

Commit 225e56a

Browse files
Update src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
1 parent 8f36e93 commit 225e56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ protected override void EndProcessing()
226226
return;
227227
}
228228

229-
if (CommandName is null || CommandName.Length is 0)
229+
if (CommandName is null or "")
230230
{
231231
SetKeyValue(completerDictionary, paramName, ScriptBlock);
232232
return;

0 commit comments

Comments
 (0)