Fix nullability of parameter

This commit is contained in:
2024-10-16 14:29:51 +02:00
parent 25eae4061b
commit 818240fcea
6 changed files with 7 additions and 7 deletions
@@ -41,7 +41,7 @@ public static class ObjectExtensions
return Optional.FromValue(obj);
}
public static T ThrowIfNull<T>([ValidatedNotNull] this T obj, string name) where T : class
public static T ThrowIfNull<T>([ValidatedNotNull] this T? obj, string name) where T : class
{
if (obj is null)
{