diff --git a/aspnetcore/fundamentals/minimal-apis/samples/WebMinAPIs/ResultsExtensions.cs b/aspnetcore/fundamentals/minimal-apis/samples/WebMinAPIs/ResultsExtensions.cs index 963b22883f..e0bc766b4f 100644 --- a/aspnetcore/fundamentals/minimal-apis/samples/WebMinAPIs/ResultsExtensions.cs +++ b/aspnetcore/fundamentals/minimal-apis/samples/WebMinAPIs/ResultsExtensions.cs @@ -4,7 +4,7 @@ static class ResultsExtensions { public static IResult Html(this IResultExtensions resultExtensions, string html) { - ArgumentNullException.ThrowIfNull(resultExtensions, nameof(resultExtensions)); + ArgumentNullException.ThrowIfNull(resultExtensions); return new HtmlResult(html); }