Simplify code example (#24100)

Remove the second parameter as the compiler will do that for you automatically in C#10.
pull/24112/head
Martin Costello 2021-11-29 09:57:28 +00:00 committed by GitHub
parent 82e7193e3c
commit 8c10c96224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}