Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
Co-authored-by: Agnès ZITTE <16295702+agneszitte@users.noreply.github.com>
  • Loading branch information
dr1rrb and agneszitte authored May 22, 2024
1 parent 153a52c commit d3ed372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/Helpers/WeakEvents/WeakEventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit d3ed372

Please sign in to comment.