refactor(api): remove redundant api_set_error

This error is already handled by 'find_buffer_by_handle'
This commit is contained in:
Javier López 2021-08-10 15:55:03 -05:00
parent c5baba065c
commit d475955ed3

View File

@ -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;
}