Skip to content

Commit

Permalink
fix exception nullability in TryGetMessage (#4421)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Dec 21, 2024
1 parent 5e4d216 commit 76665ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal static Exception GetRealException(this Exception exception)
/// </summary>
/// <param name="exception">An <see cref="Exception"/> object.</param>
/// <returns>Exception message.</returns>
internal static string TryGetMessage(this Exception exception)
internal static string TryGetMessage(this Exception? exception)
{
if (exception == null)
{
Expand Down

0 comments on commit 76665ae

Please sign in to comment.