Software /
code /
prosody
Changeset
6660:30672cc3d8ee
modulemanager: Remove unused import of pcall #luacheck
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:15:35 +0100 |
parents | 6659:0a494394cd3e |
children | 6661:90e846e8a788 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);