Skip to content

Commit ea5b885

Browse files
chinasondougbu
authored andcommitted
Update ReflectedHttpActionDescriptor.cs
Remove duplicated methodCall
1 parent 242dcf8 commit ea5b885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Web.Http/Controllers/ReflectedHttpActionDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ private static Func<object, object[], Task<object>> GetExecutor(MethodInfo metho
400400

401401
// Call method
402402
UnaryExpression instanceCast = (!methodInfo.IsStatic) ? Expression.Convert(instanceParameter, methodInfo.ReflectedType) : null;
403-
MethodCallExpression methodCall = methodCall = Expression.Call(instanceCast, methodInfo, parameters);
403+
MethodCallExpression methodCall = Expression.Call(instanceCast, methodInfo, parameters);
404404

405405
// methodCall is "((MethodInstanceType) instance).method((T0) parameters[0], (T1) parameters[1], ...)"
406406
// Create function

0 commit comments

Comments
 (0)