aboutsummaryrefslogtreecommitdiffstats
path: root/util/error.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-09-28 23:48:02 +0200
committerKim Alvefur <zash@zash.se>2020-09-28 23:48:02 +0200
commit02b56f2304d65945480ecef156c5cf5c60b5ca9f (patch)
treef4309229137ee2a1e1c58b0f6e316222d0e0319e /util/error.lua
parent315d9ef8d9f43f0cc7929f98a6769f0567048e72 (diff)
downloadprosody-02b56f2304d65945480ecef156c5cf5c60b5ca9f.tar.gz
prosody-02b56f2304d65945480ecef156c5cf5c60b5ca9f.zip
util.error: Drop registry initialization with namespace as key
Enough complexity with compact vs normal and with/without namespace
Diffstat (limited to 'util/error.lua')
-rw-r--r--util/error.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/util/error.lua b/util/error.lua
index 5bd0f80e..132389f7 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -92,10 +92,6 @@ local function init(source, namespace, registry)
if type(namespace) == "table" then
-- registry can be given as second argument if namespace is either not used
registry, namespace = namespace, nil;
- if type(registry.namespace) == "string" then
- -- error templates are always type table, so this can't be one
- namespace, registry.namespace = registry.namespace, nil;
- end
end
local _, protoerr = next(registry, nil);
if protoerr and type(next(protoerr)) == "number" then