Skip to content

Commit aea8962

Browse files
committed
Remove unnecessary parameter
1 parent ad9b068 commit aea8962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CommunityToolkit.Diagnostics/Guard.String.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static void IsNotEmpty(string text, [CallerArgumentExpression("text")] st
114114
return;
115115
}
116116

117-
ThrowHelper.ThrowArgumentExceptionForIsNotEmpty(text, name);
117+
ThrowHelper.ThrowArgumentExceptionForIsNotEmpty(name);
118118
}
119119

120120
/// <summary>

CommunityToolkit.Diagnostics/Internals/Guard.String.ThrowHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static void ThrowArgumentExceptionForIsEmpty(string text, string name)
8585
/// Throws an <see cref="ArgumentException"/> when <see cref="IsNotEmpty"/> fails.
8686
/// </summary>
8787
[DoesNotReturn]
88-
public static void ThrowArgumentExceptionForIsNotEmpty(string text, string name)
88+
public static void ThrowArgumentExceptionForIsNotEmpty(string name)
8989
{
9090
throw new ArgumentException($"Parameter {AssertString(name)} (string) must not be empty.", name);
9191
}

0 commit comments

Comments
 (0)