Skip to content

Commit d65b763

Browse files
fix code smell
1 parent 4e6f4f4 commit d65b763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analyzers/src/SonarAnalyzer.CSharp/Rules/InfiniteRecursion.RoslynCfg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private static void CheckForNoExit(SonarSyntaxNodeReportingContext c,
9393
}
9494
else if (accessorList is not null)
9595
{
96-
foreach (var accessor in accessorList.Accessors.Where(a => a.HasBodyOrExpressionBody()))
96+
foreach (var accessor in accessorList.Accessors.Where(x => x.HasBodyOrExpressionBody()))
9797
{
9898
var cfg = ControlFlowGraph.Create(accessor, c.SemanticModel, c.Cancel);
9999
var context = new RecursionContext<ControlFlowGraph>(c, cfg, propertySymbol, accessor.Keyword.GetLocation(), accessorMessageArg);

0 commit comments

Comments
 (0)