modulemanager: Remove unused import of pcall #luacheck
authorMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2015 18:15:35 +0000 (19:15 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2015 18:15:35 +0000 (19:15 +0100)
core/modulemanager.lua

index 92372ac32f2b62f232addb683538d188cfaaeb03..451838ec3c7c51c0fc049805c54af5b8a6b4aba7 100644 (file)
@@ -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);