Skip to content

Commit

Permalink
CA2249 use String.Contains
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Jan 3, 2025
1 parent 28ec08a commit 5bd8316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PanoramicData.Blazor/PDModal.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public async Task<string> ShowAndWaitResultAsync(CancellationToken cancellationT
{
if (x is ToolbarButton btn)
{
return !string.IsNullOrWhiteSpace(btn.Key) && btn.CssClass.IndexOf("btn-primary", StringComparison.OrdinalIgnoreCase) >= 0;
return !string.IsNullOrWhiteSpace(btn.Key) && btn.CssClass.Contains("btn-primary", StringComparison.OrdinalIgnoreCase);
}

return false;
Expand Down

0 comments on commit 5bd8316

Please sign in to comment.