mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
refactor(api): remove redundant api_set_error
This error is already handled by 'find_buffer_by_handle'
This commit is contained in:
parent
c5baba065c
commit
d475955ed3
@ -1486,7 +1486,6 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id,
|
||||
{
|
||||
buf_T *buf = find_buffer_by_handle(buffer, err);
|
||||
if (!buf) {
|
||||
api_set_error(err, kErrorTypeValidation, "Invalid buffer id");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user