Skip to content

Commit 6cdf3fd

Browse files
committed
Improve code quality
1 parent 8805539 commit 6cdf3fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Localization.Analyzers/Localize/OldGetTranslateAnalyzerCodeFixProvider.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ private static Document FixOldTranslation(CodeFixContext context, SyntaxNode roo
5252
if (root is null) return context.Document;
5353

5454
var invocationExpr = root
55-
?.FindToken(diagnosticSpan.Start).Parent
56-
?.AncestorsAndSelf()
55+
.FindToken(diagnosticSpan.Start).Parent
56+
.AncestorsAndSelf()
5757
.OfType<InvocationExpressionSyntax>()
5858
.FirstOrDefault();
5959

0 commit comments

Comments
 (0)