Skip to content

Commit f0d7ed2

Browse files
Merge pull request #38 from stefannikolei/stefannikolei/nullable
Add nullable annotation for NotNullOrWhiteSpace
2 parents 9a6cf00 + aedc699 commit f0d7ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharedInfrastructure/Guard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void NotNull<TValue>([NotNull]TValue? value, [CallerArgumentExpres
3333
/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
3434
/// <exception cref="ArgumentException"><paramref name="value"/> is empty or contains only blanks.</exception>
3535
[MethodImpl(MethodImplOptions.AggressiveInlining)]
36-
public static void NotNullOrWhiteSpace(string value, string parameterName)
36+
public static void NotNullOrWhiteSpace([NotNull]string? value, string parameterName)
3737
{
3838
if (!string.IsNullOrWhiteSpace(value))
3939
{

0 commit comments

Comments
 (0)