From 674c13a0fd237234e0962c88dcbccee5bac3ad65 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 23:57:59 -0500 Subject: [PATCH] ci: typing --- lua/preview/compiler.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/preview/compiler.lua b/lua/preview/compiler.lua index b7f8983..5480d57 100644 --- a/lua/preview/compiler.lua +++ b/lua/preview/compiler.lua @@ -412,11 +412,14 @@ end ---@param bufnr integer function M.stop(bufnr) local s = state[bufnr] - if not s or not s.process then + if not s then + return + end + local obj = s.process + if not obj then return end log.dbg('stopping process for buffer %d', bufnr) - local obj = s.process obj:kill('sigterm') local timer = vim.uv.new_timer()