Skip to content

Commit c38ddae

Browse files
committed
Minor refactoring to address review to PR #5347
1 parent 18774ce commit c38ddae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ObsoleteTypeHintInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
4848
var finder = _declarationFinderProvider.DeclarationFinder;
4949

5050
var results = new List<IInspectionResult>();
51-
foreach (var moduleDeclaration in State.DeclarationFinder.UserDeclarations(DeclarationType.Module))
51+
foreach (var moduleDeclaration in finder.UserDeclarations(DeclarationType.Module))
5252
{
5353
if (moduleDeclaration == null)
5454
{
@@ -91,7 +91,7 @@ private IInspectionResult InspectionResult(Declaration declaration)
9191
declaration);
9292
}
9393

94-
private string ResultDescription(Declaration declaration)
94+
private static string ResultDescription(Declaration declaration)
9595
{
9696
var declarationTypeName = declaration.DeclarationType.ToString().ToLower();
9797
var identifierName = declaration.IdentifierName;

0 commit comments

Comments
 (0)