view util/xpcall.lua @ 12849:330bfcaa5532

luacheck: Remove long gone mod_storage_sql1 from excludes No point not checking a file that doesn't exist
author Kim Alvefur <zash@zash.se>
date Thu, 19 Jan 2023 17:29:40 +0100
parents cfc7b2f7251e
children d10957394a3c
line wrap: on
line source

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"util.compat".xpcall;
end

return {
	xpcall = xpcall;
};