diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-21 18:34:30 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-21 18:34:30 +0000 |
commit | 7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1 (patch) | |
tree | cf66d0b730933f3c4b0d06dbb8e8e191bd0da11a | |
parent | 16b51d26fe2cc3afb09afd439069220dea74581d (diff) |
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)
-rw-r--r-- | src/evalfunc.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index cb038e4c8d..38a7aa27cd 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); diff --git a/src/version.c b/src/version.c index 6d75667f66..9e21411946 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4435, +/**/ 4434, /**/ 4433, |