Skip to content

Commit

Permalink
Fix compiler information suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Nov 22, 2023
1 parent 324f78b commit fbb67d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/Demo/Shared/Components/TableOfContents.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ private async Task QueryDom()

private bool AnchorsEqual(Anchor[]? firstSet, Anchor[]? secondSet)
{
return (firstSet ?? Array.Empty<Anchor>())
.SequenceEqual(secondSet ?? Array.Empty<Anchor>());
return (firstSet ?? [])
.SequenceEqual(secondSet ?? []);
}

protected override void OnInitialized()
Expand Down Expand Up @@ -188,8 +188,6 @@ public async Task Refresh()

}



async ValueTask IAsyncDisposable.DisposeAsync()
{
try
Expand Down

0 comments on commit fbb67d4

Please sign in to comment.