util/error.lua
changeset 11106 5a0ff475ecfd
parent 11105 2288d206b14b
child 11165 f51ed2652602
--- a/util/error.lua	Mon Sep 28 22:13:04 2020 +0200
+++ b/util/error.lua	Mon Sep 28 23:48:02 2020 +0200
@@ -92,10 +92,6 @@
 	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