Skip to content

Commit

Permalink
Fix "Debug.Assert" to use condition expression as message
Browse files Browse the repository at this point in the history
  • Loading branch information
i3arnon authored Jan 30, 2023
1 parent 283c44c commit 284b5e3
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 284b5e3

Please sign in to comment.