Skip to content

Commit

Permalink
Fix nullable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
richardszalay committed Oct 12, 2023
1 parent 0de9a55 commit abc37e3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ string GetMatcherStatus(IMockedRequestMatcher matcher)

if (result.Handler is not IEnumerable<IMockedRequestMatcher> matchers)
{
sb.AppendLine(result.Handler.ToString());
if (result.Handler is not null)
{
sb.AppendLine(result.Handler.ToString());
}
return;
}

Expand Down

0 comments on commit abc37e3

Please sign in to comment.