From ad64fec9f28c5dbcb5feda3b3c39303e1eb715b9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 1 May 2018 20:51:37 +0200 Subject: mod_admin_adhoc: Remove unused initial values [luacheck] --- plugins/mod_admin_adhoc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index 9c9ce284..0d84e00b 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -212,8 +212,8 @@ local get_user_password_handler = adhoc_simple(get_user_password_layout, functio return generate_error_message(err); end local user, host, resource = jid.split(fields.accountjid); - local accountjid = ""; - local password = ""; + local accountjid; + local password; if host ~= module_host then return { status = "completed", error = { message = "Tried to get password for a user on " .. host .. " but command was sent to " .. module_host } }; elseif usermanager_user_exists(user, host) then -- cgit v1.2.3