fix(compiler): split nil guard in M.stop for type narrowing
This commit is contained in:
parent
e59b5eb241
commit
efa0b1fe73
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue