From: Badlop Date: Mon, 17 Sep 2018 08:42:29 +0000 (+0200) Subject: Remove unused variables X-Git-Tag: 18.09~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb9593dd124b02c6afcf5bdd2195bce00e2d3658;p=ejabberd Remove unused variables --- diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 851941fa8..06dc8e5b6 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -1452,8 +1452,7 @@ send_message(Type, From, To, Subject, Body) -> ToJID = jid:decode(To), Packet = build_packet(Type, Subject, Body, FromJID, ToJID), State1 = #{jid => FromJID}, - {Pkt2, State2} = ejabberd_hooks:run_fold( - user_send_packet, FromJID#jid.lserver, {Packet, State1}, []), + ejabberd_hooks:run_fold(user_send_packet, FromJID#jid.lserver, {Packet, State1}, []), ejabberd_router:route(xmpp:set_from_to(Packet, FromJID, ToJID)). build_packet(Type, Subject, Body, FromJID, ToJID) ->