Changeset

3032:0f2dd6397569

mod_pastebin: Remove unused locals [luacheck]
author Kim Alvefur <zash@zash.se>
date Sun, 20 May 2018 18:10:12 +0200
parents 3031:040eaa3844f4
children 3033:b2b129f699ed
files mod_pastebin/mod_pastebin.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_pastebin/mod_pastebin.lua	Sun May 20 17:55:53 2018 +0200
+++ b/mod_pastebin/mod_pastebin.lua	Sun May 20 18:10:12 2018 +0200
@@ -3,7 +3,7 @@
 module:depends("http");
 local uuid_new = require "util.uuid".generate;
 local os_time = os.time;
-local t_insert, t_remove = table.insert, table.remove;
+local t_remove = table.remove;
 local add_task = require "util.timer".add_task;
 local jid_bare = require "util.jid".bare;
 local muc_rooms;
@@ -92,7 +92,7 @@
 local line_count_pattern = string.rep("[^\n]\n", line_threshold):sub(1, -2);
 
 function check_message(data)
-	local origin, stanza = data.origin, data.stanza;
+	local stanza = data.stanza;
 
 	-- Only check for MUC presence when loaded on a component.
 	if is_component then