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
@@ -5,7 +5,7 @@ namespace System.Core.Extensions;
public static class ObjectExtensions
{
public static T ThrowIfNull<T>([NotNull] this T obj, [CallerArgumentExpression("obj")] string? paramName = null)
public static T ThrowIfNull<T>([NotNull] this T? obj, [CallerArgumentExpression("obj")] string? paramName = null)
where T : class
{
if (obj is null)