Skip to content

Commit db6a72c

Browse files
committed
some cleanup
1 parent 6cc69d2 commit db6a72c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rubberduck.Inspections/Concrete/UnreachableCaseInspection/ParseTreeValueVisitor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ private bool TryGetIdentifierReferenceForContext(ParserRuleContext context, out
282282
idRef = null;
283283
var nameToMatch = context.GetText();
284284
var identifierReferences = (_state.DeclarationFinder.MatchName(context.GetText()).Select(dec => dec.References)).SelectMany(rf => rf);
285-
//if (identifierReferences.Any())
286285
if (identifierReferences.Any(rf => rf.Context == context))
287286
{
288-
idRef = identifierReferences.First(); // (rf => rf.Context == context);
287+
idRef = identifierReferences.First();
289288
return true;
290289
}
291290
return false;

0 commit comments

Comments
 (0)