From 43bd39804da429824b7b007bb1168b21995fb697 Mon Sep 17 00:00:00 2001 From: MartyIX <203266+MartyIX@users.noreply.github.com> Date: Sat, 11 May 2024 21:06:25 +0200 Subject: [PATCH] is null --- src/Core/src/Platform/Windows/ContentPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/src/Platform/Windows/ContentPanel.cs b/src/Core/src/Platform/Windows/ContentPanel.cs index 00f53554e003..48d91cd41940 100644 --- a/src/Core/src/Platform/Windows/ContentPanel.cs +++ b/src/Core/src/Platform/Windows/ContentPanel.cs @@ -82,7 +82,7 @@ internal void EnsureBorderPath() public void UpdateBackground(Paint? background) { - if (_borderPath == null) + if (_borderPath is null) { return; } @@ -135,7 +135,7 @@ void UpdateBorder(IShape? strokeShape) void AddContent(FrameworkElement? content) { - if (content == null) + if (content is null) { return; }