diff --git a/src/Common/CSharp/Analysis/AddExceptionToDocumentationComment/AddExceptionToDocumentationCommentAnalysis.cs b/src/Common/CSharp/Analysis/AddExceptionToDocumentationComment/AddExceptionToDocumentationCommentAnalysis.cs index c7c5622e04..afb9eab32b 100644 --- a/src/Common/CSharp/Analysis/AddExceptionToDocumentationComment/AddExceptionToDocumentationCommentAnalysis.cs +++ b/src/Common/CSharp/Analysis/AddExceptionToDocumentationComment/AddExceptionToDocumentationCommentAnalysis.cs @@ -230,8 +230,8 @@ private static bool IsExceptionTypeCaughtInMethod(SyntaxNode node, ITypeSymbol e { if (parent is TryStatementSyntax tryStatement && tryStatement.Catches.Any(catchClause => - { - var exceptionType = catchClause.Declaration?.Type; + { + TypeSyntax exceptionType = catchClause.Declaration?.Type; return exceptionType is null || SymbolEqualityComparer.Default.Equals(