refactor(git): drop redundant pcall around nvim_buf_delete
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ function M.open_commit(worktree, ref)
|
|||||||
pcall(vim.api.nvim_win_close, win, true)
|
pcall(vim.api.nvim_win_close, win, true)
|
||||||
end
|
end
|
||||||
if vim.api.nvim_buf_is_valid(buf) then
|
if vim.api.nvim_buf_is_valid(buf) then
|
||||||
pcall(vim.api.nvim_buf_delete, buf, { force = true })
|
vim.api.nvim_buf_delete(buf, { force = true })
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user