Skip to content

Commit

Permalink
Make use of message in Debug.Assert
Browse files Browse the repository at this point in the history
I assume the argument expression in `message` was originally meant to be used.
  • Loading branch information
i3arnon authored Jan 30, 2023
1 parent 283c44c commit cbb8a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MoreLinq/Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ static class Debug
[Conditional("DEBUG")]
public static void Assert([DoesNotReturnIf(false)] bool condition,
[CallerArgumentExpression(nameof(condition))] string? message = null) =>
System.Diagnostics.Debug.Assert(condition);
System.Diagnostics.Debug.Assert(condition, message);
}
}

0 comments on commit cbb8a95

Please sign in to comment.