summaryrefslogtreecommitdiff
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-22 20:42:12 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-22 20:42:12 +0000
commitfe154990c1c57fac6d5a4b1bfb682e27adb4eb8c (patch)
treef2bbad2d3535a267d934e85eeadf1d652936d5eb /src/vim9cmds.c
parent6f2465d336a9d4afe392db4084ef7e9db17e67c1 (diff)
downloadvim-git-fe154990c1c57fac6d5a4b1bfb682e27adb4eb8c.tar.gz
patch 8.2.4610: some conditions are always truev8.2.4610
Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index cc2c04158..072a106a5 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -1613,8 +1613,7 @@ compile_endtry(char_u *arg, cctx_T *cctx)
// End :catch or :finally scope: set instruction index in ISN_TRY
// instruction
try_isn->isn_arg.tryref.try_ref->try_endtry = instr->ga_len;
- if (cctx->ctx_skip != SKIP_YES
- && generate_instr(cctx, ISN_ENDTRY) == NULL)
+ if (generate_instr(cctx, ISN_ENDTRY) == NULL)
return NULL;
#ifdef FEAT_PROFILE
if (cctx->ctx_compile_type == CT_PROFILE)