From 7d856a2c41790e5e4e633fee5b956f5dd11bac51 Mon Sep 17 00:00:00 2001 From: "Jason Shirk (POWERSHELL)" Date: Thu, 1 Dec 2016 17:51:17 -0800 Subject: [PATCH] Remove one more extra Expression.Block call --- .../engine/runtime/Binding/Binders.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs index 5401f240d5e..bd1ca5c8b21 100644 --- a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs +++ b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs @@ -1728,8 +1728,7 @@ public override DynamicMetaObject FallbackCreateInstance(DynamicMetaObject targe Expression.Block(typeof(void), blockExprs), Expression.Catch( exception, - Expression.Block( - Compiler.ThrowRuntimeErrorWithInnerException("PropertyAssignmentException", Expression.Property(exception, "Message"), exception, typeof(void))))), + Compiler.ThrowRuntimeErrorWithInnerException("PropertyAssignmentException", Expression.Property(exception, "Message"), exception, typeof(void)))), // The result of the block is the object constructed, so the tmp must be the last expr in the block. tmp); }