Skip to content

Commit

Permalink
Merge pull request #12035 from YohDeadfall/redundant-null-check
Browse files Browse the repository at this point in the history
Removed redundant Source check
  • Loading branch information
maxkatz6 committed Jul 12, 2023
2 parents b173419 + 7cd2350 commit 9d5749c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Avalonia.Base/Interactivity/EventRoute.cs
Expand Up @@ -120,11 +120,6 @@ private void RaiseEventImpl(RoutedEventArgs e)
return;
}

if (e.Source is null)
{
throw new ArgumentException("Event source may not be null", nameof(e));
}

Interactive? lastTarget = null;
var start = 0;
var end = _route.Count;
Expand Down

0 comments on commit 9d5749c

Please sign in to comment.