Skip to content

Commit 1a60a76

Browse files
Call correct helper method
1 parent 7ef8f60 commit 1a60a76

File tree

1 file changed

+1
-8
lines changed
  • src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared

1 file changed

+1
-8
lines changed

src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/ArgHelper.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ public static void ThrowIfNull([NotNull] object? argument, [CallerArgumentExpres
1919
#else
2020
if (argument is null)
2121
{
22-
ThrowException(paramName);
23-
}
24-
25-
[DoesNotReturn]
26-
[MethodImpl(MethodImplOptions.NoInlining)]
27-
static void ThrowException(string? paramName)
28-
{
29-
throw new ArgumentNullException(paramName);
22+
ThrowArgumentNullException(paramName);
3023
}
3124
#endif
3225
}

0 commit comments

Comments
 (0)