mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
Call to list_append_dict cannot fail.
Clean up the use of list_append_dict and remove error checks.
This commit is contained in:

committed by
Thiago de Arruda

parent
9da32a1f78
commit
8d5a546d3f
@@ -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;
|
||||
|
Reference in New Issue
Block a user