Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Oct 8, 2024
1 parent e4076ed commit d8d3dea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d8d3dea

Please sign in to comment.