compat: Remove handling of Lua 5.1 location of 'unpack' function

This commit is contained in:
Kim Alvefur 2022-07-11 19:07:38 +02:00
parent d055a704d8
commit 5251c9b686
17 changed files with 17 additions and 17 deletions

View file

@ -27,7 +27,7 @@ local ipairs, pairs, select = ipairs, pairs, select;
local tonumber, tostring = tonumber, tostring;
local require = require;
local pack = table.pack or require "util.table".pack; -- table.pack is only in 5.2
local unpack = table.unpack or unpack; --luacheck: ignore 113 -- renamed in 5.2
local unpack = table.unpack;
local prosody = prosody;
local hosts = prosody.hosts;