Skip to content

Commit

Permalink
chore: Adjust for CA1827
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Oct 8, 2024
1 parent a36e54e commit a3f8ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private bool ShouldMaterialize(DiagnosticViewRegistration registration)
{
DiagnosticViewRegistrationMode.All => true,
DiagnosticViewRegistrationMode.OnDemand => false,
_ => _overlays.Count(overlay => overlay.Value.IsMaterialized(registration.View)) is 0
_ => !_overlays.Any(overlay => overlay.Value.IsMaterialized(registration.View))
};
}

Expand Down

0 comments on commit a3f8ff6

Please sign in to comment.