mod_admin_adhoc: Remove unused initial values [luacheck]
authorKim Alvefur <zash@zash.se>
Tue, 01 May 2018 20:51:37 +0200
changeset 8773 9c9b198bab84
parent 8772 e809074cdc09
child 8774 82bdeb8009ce
mod_admin_adhoc: Remove unused initial values [luacheck]
plugins/mod_admin_adhoc.lua
--- a/plugins/mod_admin_adhoc.lua	Tue May 01 20:47:52 2018 +0200
+++ b/plugins/mod_admin_adhoc.lua	Tue May 01 20:51:37 2018 +0200
@@ -212,8 +212,8 @@
 		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