Skip to content

Commit bd94337

Browse files
author
Kapil Borle
committed
Use Any instead of Count to test empty enumerable
1 parent 29d0d72 commit bd94337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Language/LanguageService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ private Ast FindSmallestStatementAst(ScriptFile scriptFile, int lineNumber, int
619619
return true;
620620
}, true);
621621

622-
if (asts == null || asts.Count() == 0)
622+
if (asts == null || !asts.Any())
623623
{
624624
return null;
625625
}

0 commit comments

Comments
 (0)