summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-21 18:34:30 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-21 18:34:30 +0000
commit7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1 (patch)
treecf66d0b730933f3c4b0d06dbb8e8e191bd0da11a /src/evalfunc.c
parent16b51d26fe2cc3afb09afd439069220dea74581d (diff)
downloadvim-git-7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1.tar.gz
patch 8.2.4435: dead code in checking map() argumentsv8.2.4435
Problem: Dead code in checking map() arguments. (Dominique Pellé) Solution: Remove the first return statement. (closes #9815)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index cb038e4c8..38a7aa27c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
? &t_any : expected_ret;
if (args[0] == NULL)
args[0] = &t_unknown;
- return check_arg_type(&t_func_exp, type, context);
where.wt_index = 2;
return check_type(&t_func_exp, type, TRUE, where);