Changeset

5544:cb141088eff0

mod_http_oauth2: Remove underscore prefix LuaCheck considers this to mean that a variable it unused, but this one is not.
author Kim Alvefur <zash@zash.se>
date Sat, 10 Jun 2023 12:04:00 +0200
parents 5543:fed5995180c5
children 5545:fcef6263acdb
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Fri Jun 09 18:07:15 2023 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sat Jun 10 12:04:00 2023 +0200
@@ -72,7 +72,7 @@
 
 local site_name = module:get_option_string("site_name", module.host);
 
-local _render_html = require"util.interpolation".new("%b{}", st.xml_escape);
+local render_html = require"util.interpolation".new("%b{}", st.xml_escape);
 local function render_page(template, data, sensitive)
 	data = data or {};
 	data.site_name = site_name;
@@ -86,7 +86,7 @@
 			["Cache-Control"] = (sensitive and "no-store" or "no-cache")..", private";
 			["Pragma"] = "no-cache";
 		};
-		body = _render_html(template, data);
+		body = render_html(template, data);
 	};
 	return resp;
 end
@@ -1140,7 +1140,7 @@
 			headers = {
 				["Content-Type"] = "text/css";
 			};
-			body = _render_html(templates.css, module:get_option("oauth2_template_style"));
+			body = render_html(templates.css, module:get_option("oauth2_template_style"));
 		} or nil;
 		["GET /script.js"] = templates.js and {
 			headers = {