From 4e3656da3711fd045fdf90dec7084bd4556c5b7f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 21 Mar 2024 15:42:54 +0800 Subject: remove one more redundant 'do' block from try-catch. --- spec/outputs/upvalue_func.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'spec/outputs/upvalue_func.lua') diff --git a/spec/outputs/upvalue_func.lua b/spec/outputs/upvalue_func.lua index 14fe400..5113692 100644 --- a/spec/outputs/upvalue_func.lua +++ b/spec/outputs/upvalue_func.lua @@ -368,11 +368,9 @@ local _anon_func_18 = function(print, select, _arg_0, ...) end end local _anon_func_19 = function(print) - do - local a = 1 - print(a + nil) - return 1, 2, 3 - end + local a = 1 + print(a + nil) + return 1, 2, 3 end local _anon_func_20 = function(cond, i) local _accum_0 = { } @@ -516,11 +514,9 @@ local _anon_func_29 = function(os, _arg_0, ...) end end local _anon_func_30 = function(debug_env_after, debug_env_before, env, func) - do - debug_env_before(env) - func(env) - return debug_env_after(env) - end + debug_env_before(env) + func(env) + return debug_env_after(env) end do local buff_strength -- cgit v1.2.3-55-g6feb