Skip to content

Commit

Permalink
removed check for empty events args object
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlagunas committed Jan 27, 2025
1 parent 8caa045 commit 5f5fb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Maui/Prism.Maui/Behaviors/EventToCommandBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
using System.Windows.Input;
Expand Down Expand Up @@ -234,7 +234,7 @@ protected virtual void OnEventRaised(object sender, EventArgs eventArgs)
parameter = propertyValue;
}

if (parameter == null && eventArgs != null && eventArgs != EventArgs.Empty && EventArgsConverter != null)
if (parameter == null && eventArgs != null && EventArgsConverter != null)
{
parameter = EventArgsConverter.Convert(eventArgs, typeof(object), EventArgsConverterParameter,
CultureInfo.CurrentUICulture);
Expand Down

0 comments on commit 5f5fb85

Please sign in to comment.