Skip to content

Commit 6a77ab6

Browse files
committed
fixed compile errors
1 parent 88477a8 commit 6a77ab6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/UnreachableCaseEvaluation/UnreachableCaseInspector.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ public UnreachableCaseInspector(
114114
}
115115

116116
if (rangeClauseExpressions.All(expr =>
117-
expr != null && (expr.IsUnreachable || expr.IsMismatch|| expr.IsOverflow || expr.IsInherentlyUnreachable))))
117+
expr != null && (expr.IsUnreachable || expr.IsMismatch|| expr.IsOverflow || expr.IsInherentlyUnreachable)))
118118
{
119119
return UnreachableCaseInspection.CaseInspectionResultType.Unreachable;
120120
}
121+
122+
return null;
121123
}
122124

123125
private (UnreachableCaseInspection.CaseInspectionResultType? invalidValueType, VBAParser.CaseClauseContext caseClause) WithInvalidValueType(VBAParser.CaseClauseContext caseClause, IParseTreeVisitorResults parseTreeValues)

0 commit comments

Comments
 (0)