Simplify code example (#24100)
Remove the second parameter as the compiler will do that for you automatically in C#10.pull/24112/head
parent
82e7193e3c
commit
8c10c96224
|
@ -4,7 +4,7 @@ static class ResultsExtensions
|
||||||
{
|
{
|
||||||
public static IResult Html(this IResultExtensions resultExtensions, string html)
|
public static IResult Html(this IResultExtensions resultExtensions, string html)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(resultExtensions, nameof(resultExtensions));
|
ArgumentNullException.ThrowIfNull(resultExtensions);
|
||||||
|
|
||||||
return new HtmlResult(html);
|
return new HtmlResult(html);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue