# HG changeset patch # User Matthew Wild # Date 1430936135 -3600 # Node ID 30672cc3d8ee963ec5226d05c7d4c36d7763c321 # Parent 0a494394cd3e7645f3cdc5e37fff72c5b9667ed3 modulemanager: Remove unused import of pcall #luacheck diff -r 0a494394cd3e -r 30672cc3d8ee core/modulemanager.lua --- 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);