refactor(git): drop redundant pcall around nvim_buf_delete

This commit is contained in:
2026-04-27 17:49:06 +02:00
parent 069a6cc0c6
commit 3f0c884c53
+1 -1
View File
@@ -175,7 +175,7 @@ function M.open_commit(worktree, ref)
pcall(vim.api.nvim_win_close, win, true)
end
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
return
end