Skip to content

Commit 7acfd31

Browse files
committed
minor tweak
1 parent ebd7703 commit 7acfd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ProcedureCanBeWrittenAsFunctionInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public ProcedureCanBeWrittenAsFunctionInspection(RubberduckParserState state)
2626

2727
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2828
{
29-
if (Listener.Contexts.Count == 0)
29+
if (!Listener.Contexts.Any())
3030
{
3131
return Enumerable.Empty<IInspectionResult>();
3232
}

0 commit comments

Comments
 (0)