Diff

core/moduleapi.lua @ 12589:39ae08180c81

compat: Remove handling of Lua 5.1 location of 'unpack' function
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 19:07:38 +0200
parent 12479:4d36fbcdd210
child 12590:5eaf77114fdb
line wrap: on
line diff
--- a/core/moduleapi.lua	Mon Jul 11 17:32:13 2022 +0200
+++ b/core/moduleapi.lua	Mon Jul 11 19:07:38 2022 +0200
@@ -27,7 +27,7 @@
 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;