Skip to content

Commit b537383

Browse files
authored
Update src/Components/Components/src/ComponentsMetrics.cs
1 parent 4b93220 commit b537383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Components/src/ComponentsMetrics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ private static void AddAttributeNameTag(ref TagList tags, string? attributeName)
200200

201201
private static void AddErrorTag(ref TagList tags, Exception? exception)
202202
{
203-
if (exception?.GetType().FullName != null)
203+
if (exception?.GetType().FullName is { } errorType)
204204
{
205-
tags.Add("error.type", exception.GetType().FullName);
205+
tags.Add("error.type", errorType);
206206
}
207207
}
208208
}

0 commit comments

Comments
 (0)