Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jun 7, 2024
1 parent df37729 commit ee8c359
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ private static void CheckForNoExit(SonarSyntaxNodeReportingContext c,
accessorList = propertyDeclaration.AccessorList;
location = propertyDeclaration.Identifier.GetLocation();
}
else if (c.Node is IndexerDeclarationSyntax indexerDeclaration)
else
{
var indexerDeclaration = (IndexerDeclarationSyntax)c.Node;
expressionBody = indexerDeclaration.ExpressionBody;
accessorList = indexerDeclaration.AccessorList;
location = indexerDeclaration.ThisKeyword.GetLocation();
Expand Down

0 comments on commit ee8c359

Please sign in to comment.