summaryrefslogtreecommitdiff
path: root/src/dict.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dict.c b/src/dict.c
index 58fd68a6f..874b8231d 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -1578,11 +1578,9 @@ f_has_key(typval_T *argvars, typval_T *rettv)
|| check_for_string_or_number_arg(argvars, 1) == FAIL))
return;
- if (argvars[0].v_type != VAR_DICT)
- {
- emsg(_(e_dictionary_required));
+ if (check_for_dict_arg(argvars, 0) == FAIL)
return;
- }
+
if (argvars[0].vval.v_dict == NULL)
return;