Skip to content

Commit

Permalink
fix exception nullability in TryGetMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 21, 2024
1 parent 5e4d216 commit 59f64ce
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 59f64ce

Please sign in to comment.