Call to list_append_dict cannot fail.

Clean up the use of list_append_dict and remove error checks.
This commit is contained in:
oni-link
2014-04-24 15:41:45 +02:00
committed by Thiago de Arruda
parent 9da32a1f78
commit 8d5a546d3f
4 changed files with 5 additions and 14 deletions

View File

@@ -3287,8 +3287,7 @@ int get_errorlist(win_T *wp, list_T *list)
if ((dict = dict_alloc()) == NULL)
return FAIL;
if (list_append_dict(list, dict) == FAIL)
return FAIL;
list_append_dict(list, dict);
buf[0] = qfp->qf_type;
buf[1] = NUL;