File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
RetailCoder.VBE/Inspections Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ public async Task<IEnumerable<ICodeInspectionResult>> FindIssuesAsync(Rubberduck
64
64
65
65
// Prepare ParseTreeWalker based inspections
66
66
var parseTreeWalkResults = GetParseTreeResults ( config , state ) ;
67
- foreach ( var parseTreeInspection in _inspections . Where ( inspection => inspection . Severity != CodeInspectionSeverity . DoNotShow && inspection is IParseTreeInspection ) )
67
+ foreach ( var parseTreeInspection in _inspections . OfType < IParseTreeInspection > ( ) . Where ( inspection => inspection . Severity != CodeInspectionSeverity . DoNotShow ) )
68
68
{
69
- ( parseTreeInspection as IParseTreeInspection ) . ParseTreeResults = parseTreeWalkResults ;
69
+ parseTreeInspection . ParseTreeResults = parseTreeWalkResults ;
70
70
}
71
71
72
72
var inspections = _inspections . Where ( inspection => inspection . Severity != CodeInspectionSeverity . DoNotShow )
You can’t perform that action at this time.
0 commit comments