refactor: replace vim.uv.* asserts with warn-and-bail
This commit is contained in:
+2
-2
@@ -58,8 +58,8 @@ local function delete_buffer(force)
|
||||
if #buffers < 2 then
|
||||
return
|
||||
end
|
||||
local b1 = assert(buffers[1])
|
||||
local b2 = assert(buffers[2])
|
||||
local b1 = buffers[1] --[[@as -nil]]
|
||||
local b2 = buffers[2] --[[@as -nil]]
|
||||
|
||||
local current = tonumber(b1:match("^%s*(%d+)")) --[[@as integer?]]
|
||||
local previous = tonumber(b2:match("^%s*(%d+)")) --[[@as integer?]]
|
||||
|
||||
Reference in New Issue
Block a user