# HG changeset patch # User Kim Alvefur # Date 1686391440 -7200 # Node ID cb141088eff0d2ed7a9dd98b196aac63f993f4d3 # Parent fed5995180c54d79ddd2b0007bceeb6f82be7cc1 mod_http_oauth2: Remove underscore prefix LuaCheck considers this to mean that a variable it unused, but this one is not. diff -r fed5995180c5 -r cb141088eff0 mod_http_oauth2/mod_http_oauth2.lua --- 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 = {