build.lua: assert to suppress lsp warning

lol
This commit is contained in:
2026-05-24 12:45:35 +02:00
parent 2a22544464
commit 6d57f1fe6b

View File

@@ -74,7 +74,7 @@ local objects = {}
local coolArgs = {}
local function getTime(path)
local handle = io.popen('stat -c %Y "' .. path .. '" 2>/dev/null')
local handle = assert(io.popen('stat -c %Y "' .. path .. '" 2>/dev/null'))
local result = handle:read("*a")
handle:close()
return tonumber(result) or 0