aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-11 19:15:24 +0200
committerKim Alvefur <zash@zash.se>2022-07-11 19:15:24 +0200
commitf8e73eba98a73e5d3dd14f73d7ce66e5503efbb4 (patch)
treeb2d824d9e86f21f6f9701a94dea3028b54110b20 /core
parent5251c9b686fc7885c1213cc2580d66ebda2dda9b (diff)
downloadprosody-f8e73eba98a73e5d3dd14f73d7ce66e5503efbb4.tar.gz
prosody-f8e73eba98a73e5d3dd14f73d7ce66e5503efbb4.zip
compat: Use table.pack (there since Lua 5.2) over our util.table
Added in d278a770eddc avoid having to deal with its absence in Lua 5.1. No longer needed when Lua 5.1 support is dropped.
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 98474b27..36d82193 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -26,7 +26,7 @@ local error, setmetatable, type = error, setmetatable, type;
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 pack = table.pack;
local unpack = table.unpack;
local prosody = prosody;