We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175de28 commit 180d9a1Copy full SHA for 180d9a1
Rubberduck.CodeAnalysis/Inspections/Concrete/EmptyMethodInspection.cs
@@ -43,7 +43,7 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
43
44
return State.DeclarationFinder.UserDeclarations(DeclarationType.Member)
45
.Where(member => !allInterfaces.Any(userInterface => userInterface.QualifiedModuleName == member.QualifiedModuleName)
46
- && !((ModuleBodyElementDeclaration)member).Block.ContainsExecutableStatements())
+ && !(member is ModuleBodyElementDeclaration mbe && mbe.Block.ContainsExecutableStatements()))
47
48
.Select(result => new DeclarationInspectionResult(this,
49
string.Format(InspectionResults.EmptyMethodInspection,
0 commit comments