Skip to content

Commit

Permalink
feat (Link THR): switches code to use Task.Run instead of async
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepollock committed Jan 26, 2024
1 parent 9c3c044 commit 89f212f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ protected virtual async Task SetInnerContent(TagHelperOutput output, ILink model
}

/// <inheritdoc/>
protected override async Task RenderNullOrInvalidAsync(TagHelperContext context, TagHelperOutput output)
protected override Task RenderNullOrInvalidAsync(TagHelperContext context, TagHelperOutput output)
{
await output.SupressOutputOrTag();
// use SupressOutputOrTag instead of SuppressOutput as tag may have child content.
return Task.Run(output.SupressOutputOrTag);
}

/// <summary>
Expand Down

0 comments on commit 89f212f

Please sign in to comment.