Browse Source

fixes: Unnecessary re throw

pull/6963/head
Giuseppe Lippolis 5 years ago
parent
commit
d5420d6b79
  1. 15
      src/Avalonia.Base/Data/Converters/MethodToCommandConverter.cs

15
src/Avalonia.Base/Data/Converters/MethodToCommandConverter.cs

@ -140,18 +140,9 @@ namespace Avalonia.Data.Converters
); );
} }
Action<object> action = null; return Expression
try .Lambda<Action<object>>(body, parameter)
{ .Compile();
action = Expression
.Lambda<Action<object>>(body, parameter)
.Compile();
}
catch (Exception ex)
{
throw ex;
}
return action;
} }
static Func<object, bool> CreateCanExecute(object target static Func<object, bool> CreateCanExecute(object target

Loading…
Cancel
Save