# HG changeset patch # User Kim Alvefur # Date 1635966914 -3600 # Node ID 2bc5a0c0d8c365f842f2b7f9620c5f1d9cc502a1 # Parent a938df1f60de7237453a8e42824f08723ac9048e mod_rest: Remove unused variable [luacheck] Copied from core.stanza_router where it was probably used later in some code not included in the copy. diff -r a938df1f60de -r 2bc5a0c0d8c3 mod_rest/mod_rest.lua --- a/mod_rest/mod_rest.lua Wed Nov 03 13:47:34 2021 +0100 +++ b/mod_rest/mod_rest.lua Wed Nov 03 20:15:14 2021 +0100 @@ -73,7 +73,6 @@ local function compat_preevents(origin, stanza) --> boolean : handled local to = stanza.attr.to; local node, host, resource = jid.split(to); - local to_bare = node and (node .. "@" .. host) or host; -- bare JID local to_type, to_self; if node then