Browse Source
Merge pull request #6963 from workgroupengineering/fixes/Micro_Optimization_1
fixes: Unnecessary re throw
pull/6989/head
Steven Kirk
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
12 deletions
-
src/Avalonia.Base/Data/Converters/MethodToCommandConverter.cs
|
|
|
@ -140,18 +140,9 @@ namespace Avalonia.Data.Converters |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
Action<object> action = null; |
|
|
|
try |
|
|
|
{ |
|
|
|
action = Expression |
|
|
|
.Lambda<Action<object>>(body, parameter) |
|
|
|
.Compile(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
throw ex; |
|
|
|
} |
|
|
|
return action; |
|
|
|
return Expression |
|
|
|
.Lambda<Action<object>>(body, parameter) |
|
|
|
.Compile(); |
|
|
|
} |
|
|
|
|
|
|
|
static Func<object, bool> CreateCanExecute(object target |
|
|
|
|