refactor: address emmylua diagnostics
This commit is contained in:
+4
-2
@@ -58,9 +58,11 @@ local function delete_buffer(force)
|
||||
if #buffers < 2 then
|
||||
return
|
||||
end
|
||||
local b1 = assert(buffers[1])
|
||||
local b2 = assert(buffers[2])
|
||||
|
||||
local current = tonumber(buffers[1]:match("^%s*(%d+)"))
|
||||
local previous = tonumber(buffers[2]:match("^%s*(%d+)"))
|
||||
local current = tonumber(b1:match("^%s*(%d+)")) --[[@as integer?]]
|
||||
local previous = tonumber(b2:match("^%s*(%d+)")) --[[@as integer?]]
|
||||
|
||||
if not current or not previous then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user