diff options
author | oni-link <knil.ino@gmail.com> | 2014-04-24 15:41:45 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-28 07:46:24 -0300 |
commit | 8d5a546d3fdd25c8221e0e6f78c6d7ee1ebda433 (patch) | |
tree | 6da8d24fcc537c8ab5a0eb6690711fa181959f8d /src/quickfix.c | |
parent | 9da32a1f78fe075663466ac1349cb1495420591f (diff) | |
download | rneovim-8d5a546d3fdd25c8221e0e6f78c6d7ee1ebda433.tar.gz rneovim-8d5a546d3fdd25c8221e0e6f78c6d7ee1ebda433.tar.bz2 rneovim-8d5a546d3fdd25c8221e0e6f78c6d7ee1ebda433.zip |
Call to list_append_dict cannot fail.
Clean up the use of list_append_dict and remove error checks.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 090fceb975..cfbe07ac87 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -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; |