diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-03 20:47:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 20:47:29 +0800 |
commit | 89e308d7daeb8b2344105877200c7c5ae83760b0 (patch) | |
tree | 17618e0b9ad59a16e9b4b16e1b8b0d6ea0dcafbf /src/nvim/api/private/helpers.c | |
parent | 02d4c9158831be1ed89beb1c840d3d4efcf099c4 (diff) | |
parent | 2793fcae0ac2aef14c8f22636d579c68a97c0851 (diff) | |
download | rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.gz rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.bz2 rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.zip |
Merge pull request #17226 from dundargoc/refactor/remove-redundant-code
vim-patch:8.2.4241: some type casts are redundant
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index f540f8f7ee..4ddd90f3c9 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -139,10 +139,10 @@ bool try_end(Error *err) got_int = false; } else if (msg_list != NULL && *msg_list != NULL) { int should_free; - char *msg = (char *)get_exception_string(*msg_list, - ET_ERROR, - NULL, - &should_free); + char *msg = get_exception_string(*msg_list, + ET_ERROR, + NULL, + &should_free); api_set_error(err, kErrorTypeException, "%s", msg); free_global_msglist(); @@ -720,7 +720,6 @@ fail_and_free: xfree(parsed_args.rhs); xfree(parsed_args.orig_rhs); XFREE_CLEAR(parsed_args.desc); - return; } /// Collects `n` buffer lines into array `l`, optionally replacing newlines |