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.
2 parents 255c6bf + 180d9a1 commit d5c9b77Copy full SHA for d5c9b77
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