From 6838f803e74669f5dc14370715a147e99e1c35e2 Mon Sep 17 00:00:00 2001 From: Meir Blachman Date: Mon, 21 Oct 2024 09:40:09 +0300 Subject: [PATCH] chore: cleanup FluentAssertionsAnalyzer.cs --- .../Tips/FluentAssertionsAnalyzer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FluentAssertions.Analyzers/Tips/FluentAssertionsAnalyzer.cs b/src/FluentAssertions.Analyzers/Tips/FluentAssertionsAnalyzer.cs index fdbac4e..f76af54 100644 --- a/src/FluentAssertions.Analyzers/Tips/FluentAssertionsAnalyzer.cs +++ b/src/FluentAssertions.Analyzers/Tips/FluentAssertionsAnalyzer.cs @@ -49,7 +49,6 @@ private static void AnalyzeInvocation(OperationAnalysisContext context, FluentAs return; } - context.Options.AnalyzerConfigOptionsProvider.GetOptions(invocation.Syntax.SyntaxTree).TryGetValue("use_diagnostic_per_assertion", out var useDiagnosticPerAssertion); if (HasConditionalAccessAncestor(invocation)) { var expressionStatement = invocation.GetFirstAncestor(); @@ -665,4 +664,4 @@ static Diagnostic CreateDiagnostic(IOperation operation, DiagnosticMetadata meta location: operation.Syntax.GetLocation(), properties: properties); } -} \ No newline at end of file +}