Diff

plugins/mod_storage_xep0227.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 12460:f7e40f1a5f53
child 12977:74b9e05af71e
line wrap: on
line diff
--- a/plugins/mod_storage_xep0227.lua	Mon Jul 11 17:32:13 2022 +0200
+++ b/plugins/mod_storage_xep0227.lua	Mon Jul 11 19:07:38 2022 +0200
@@ -2,7 +2,7 @@
 local ipairs, pairs = ipairs, pairs;
 local setmetatable = setmetatable;
 local tostring = tostring;
-local next, unpack = next, table.unpack or unpack; --luacheck: ignore 113/unpack
+local next, unpack = next, table.unpack;
 local os_remove = os.remove;
 local io_open = io.open;
 local jid_bare = require "util.jid".bare;