Skip to content

Commit 7017149

Browse files
Potential fix for pull request finding 'Useless assignment to local variable'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 9fc10cc commit 7017149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyzers/Orchestration/OrchestrationAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public override void Initialize(AnalysisContext context)
144144
SyntaxNode? methodSyntax = null;
145145
switch (delegateCreationOperation.Target)
146146
{
147-
case IAnonymousFunctionOperation lambdaOperation:
147+
case IAnonymousFunctionOperation _:
148148
// use the containing symbol of the lambda (e.g. the class declaring it) as the method symbol
149149
methodSymbol = ctx.ContainingSymbol as IMethodSymbol;
150150
methodSyntax = delegateCreationOperation.Syntax;

0 commit comments

Comments
 (0)