Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Jun 20, 2023
1 parent 3b93dff commit 1ffeac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polly.Core/Outcome.TResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public bool TryGetResult(out TResult? result)
/// <returns>
/// The exception message if the outcome is an exception; otherwise, the string representation of the result.
/// </returns>
public override string ToString() => ExceptionDispatchInfo is null
public override string ToString() => ExceptionDispatchInfo is not null
? Exception!.Message
: Result?.ToString() ?? string.Empty;

Expand Down

0 comments on commit 1ffeac8

Please sign in to comment.