aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-06 19:15:35 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-06 19:15:35 +0100
commit2553822831a3acd9abec3c2f4753a22c025893b0 (patch)
treecae549ef7ee08445d4746d2ea6c819e9f0713b93 /core
parentdfcb1b6c064e979fec62de68c40f8c10724de634 (diff)
downloadprosody-2553822831a3acd9abec3c2f4753a22c025893b0.tar.gz
prosody-2553822831a3acd9abec3c2f4753a22c025893b0.zip
modulemanager: Remove unused import of pcall #luacheck
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 92372ac3..451838ec 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -17,13 +17,13 @@ local new_multitable = require "util.multitable".new;
local hosts = hosts;
local prosody = prosody;
-local pcall, xpcall = pcall, xpcall;
+local xpcall = xpcall;
local setmetatable, rawget = setmetatable, rawget;
local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert;
local debug_traceback = debug.traceback;
local unpack, select = unpack, select;
-pcall = function(f, ...)
+local pcall = function(f, ...)
local n = select("#", ...);
local params = {...};
return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end);