diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-27 14:16:13 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-27 14:16:13 +0100 |
commit | 3f4a73c66b342c520db2bbac0d2d44e9f32755ab (patch) | |
tree | 435f80ff5c1fe4d1fbf558a96379dd3037f84660 /plugins/mod_admin_shell.lua | |
parent | 769a3ed263b5ff865bdac6bd6ccaf54ca650b8f6 (diff) | |
download | prosody-3f4a73c66b342c520db2bbac0d2d44e9f32755ab.tar.gz prosody-3f4a73c66b342c520db2bbac0d2d44e9f32755ab.zip |
mod_admin_shell: Remove now redundant promise awaiting in dns:lookup()
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index abfade16..ac7ad58a 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -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(...) |