changeset 5351:c35f3c1762b5

mod_audit: Move underscore to avoid luacheck warning Underscore as prefix is taken as a signal that the variable is unused, but then it is used and luacheck makes noise about that.
author Kim Alvefur <zash@zash.se>
date Mon, 17 Apr 2023 08:26:20 +0200
parents f8ec43db580b
children f6577cdb1d91
files mod_audit/mod_audit.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua	Mon Apr 17 08:01:09 2023 +0200
+++ b/mod_audit/mod_audit.lua	Mon Apr 17 08:26:20 2023 +0200
@@ -171,9 +171,9 @@
 	audit(module.host, user, "mod_" .. module:get_name(), event_type, extra);
 end
 
-function module.command(_arg)
+function module.command(arg_)
 	local jid = require "util.jid";
-	local arg = require "util.argparse".parse(_arg, {
+	local arg = require "util.argparse".parse(arg_, {
 		value_params = { "limit" };
 	 });