# HG changeset patch # User Bram Moolenaar # Date 1645469103 -3600 # Node ID f68947167523032630b5284f0b6cfb76608e8573 # Parent b5760eab491e13f4d25c0f71249f8929a08b8fe0 patch 8.2.4435: dead code in checking map() arguments Commit: https://github.com/vim/vim/commit/7842761bbaa7965fa52b5e3eadf162bc7fa6cdb1 Author: Bram Moolenaar Date: Mon Feb 21 18:34:30 2022 +0000 patch 8.2.4435: dead code in checking map() arguments Problem: Dead code in checking map() arguments. (Dominique Pell?) Solution: Remove the first return statement. (closes https://github.com/vim/vim/issues/9815) diff --git a/src/evalfunc.c b/src/evalfunc.c --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -588,7 +588,6 @@ arg_map_func(type_T *type, type_T *decl_ ? &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 --- 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,