fix(compiler): split nil guard in M.stop for type narrowing

This commit is contained in:
Barrett Ruth 2026-03-05 23:57:05 -05:00
parent e59b5eb241
commit efa0b1fe73
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -412,7 +412,7 @@ end
---@param bufnr integer
function M.stop(bufnr)
local s = state[bufnr]
if not (s and s.process) then
if not s or not s.process then
return
end
log.dbg('stopping process for buffer %d', bufnr)