Skip to content

Commit

Permalink
Fixed IfNull message.
Browse files Browse the repository at this point in the history
  • Loading branch information
IliaBrahinets committed Jan 21, 2025
1 parent 9fabdf0 commit 85851e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared/Throw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void IfFalse<T0>(bool condition, string paramName, [StringSyntax(S
throw new ArgumentException(FormatMessage(message, arg0), paramName);
}

public static void IfNull([NotNull] object? value, [CallerArgumentExpression(nameof(value))] string? paramName = null, string? message = "Must not be null")
public static void IfNull([NotNull] object? value, [CallerArgumentExpression(nameof(value))] string? paramName = null, string? message = null)
{
if (value is null)
throw new ArgumentNullException(paramName, message);
Expand Down

0 comments on commit 85851e6

Please sign in to comment.