refactor: address emmylua diagnostics

This commit is contained in:
2026-04-20 22:11:18 +02:00
parent 516b9ea749
commit c7dd083083
29 changed files with 542 additions and 532 deletions
+4 -2
View File
@@ -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