Diff

core/modulemanager.lua @ 6660:30672cc3d8ee

modulemanager: Remove unused import of pcall #luacheck
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:15:35 +0100
parent 6422:6d4d87a89026
child 6661:90e846e8a788
line wrap: on
line diff
--- a/core/modulemanager.lua	Wed May 06 19:11:27 2015 +0100
+++ b/core/modulemanager.lua	Wed May 06 19:15:35 2015 +0100
@@ -17,13 +17,13 @@
 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);