From a3f8ff68f919594083ee6b726cc47041fa8d7226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Laban?= Date: Tue, 8 Oct 2024 14:39:43 -0400 Subject: [PATCH] chore: Adjust for CA1827 --- src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs b/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs index 0ff4bd4ca1e4..e796ed5b617e 100644 --- a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs +++ b/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs @@ -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)) }; }