Changeset

2925:049975800d1c

mod_register_web: Remove unused variables [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 10 Mar 2018 02:48:07 +0100
parents 2924:edf5e8a77d0c
children 2926:1dd1e5a1c707
files mod_register_web/mod_register_web.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_web/mod_register_web.lua	Sat Mar 10 02:44:27 2018 +0100
+++ b/mod_register_web/mod_register_web.lua	Sat Mar 10 02:48:07 2018 +0100
@@ -43,7 +43,7 @@
 			recaptcha_display_error = display_options and display_options.recaptcha_error
 			and ("&error="..display_options.recaptcha_error) or "";
 		}, {
-			__index = function (t, k)
+			__index = function (_, k)
 				if captcha_options[k] then return captcha_options[k]; end
 				module:log("error", "Missing parameter from captcha_options: %s", k);
 			end
@@ -164,7 +164,6 @@
 end
 
 function generate_register_response(event, form, ok, err)
-	local message;
 	event.response.headers.content_type = "text/html; charset=utf-8";
 	if ok then
 		return generate_success(event, form);