mod_admin_shell: Remove now redundant promise awaiting in dns:lookup()

This commit is contained in:
Kim Alvefur 2021-11-27 14:16:13 +01:00
parent 769a3ed263
commit 3f4a73c66b

View file

@ -1369,12 +1369,7 @@ end
function def_env.dns:lookup(name, typ, class)
local resolver = get_resolver(self.session);
local ret, err = async.wait_for(resolver:lookup_promise(name, typ, class));
if ret then
return true, ret;
elseif err then
return false, err;
end
return resolver:lookup_promise(name, typ, class)
end
function def_env.dns:addnameserver(...)