build.lua: assert to suppress lsp warning
lol
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user