From d3ed372525e1db6a5901fd1b6c57b94ef9ae45c7 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 22 May 2024 17:57:18 -0400 Subject: [PATCH] chore: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Agnès ZITTE <16295702+agneszitte@users.noreply.github.com> --- src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs b/src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs index 74dfe9a6b7a2..38b6eb3d32f4 100644 --- a/src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs +++ b/src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs @@ -22,7 +22,7 @@ public void AddEventHandler(Action? handler, [CallerMemberName] string eventName if (handler is null) { - // Allow handler to be nullable to not having to deal with nullability checks in callsites, but this indicates a bug. + // Allow handler to be nullable to not have to deal with nullability checks in callsites, but this indicates a bug. Debug.Fail($"Got a null event handler for event {eventName}."); return; } @@ -44,7 +44,7 @@ public void RemoveEventHandler(Action? handler, [CallerMemberName] string eventN if (handler is null) { - // Allow handler to be nullable to not having to deal with nullability checks in callsites, but this indicates a bug. + // Allow handler to be nullable to not have to deal with nullability checks in callsites, but this indicates a bug. Debug.Fail($"Got a null event handler for event {eventName}."); return; }