25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_stream_mgmt: Remove dead case clauses

This commit is contained in:
Holger Weiss 2018-07-10 00:52:27 +02:00
parent b915469f5e
commit 3a566e3cdf

View File

@ -349,9 +349,6 @@ negotiate_stream_mgmt(Pkt, #{lang := Lang} = State) ->
Err = #sm_failed{reason = 'unexpected-request',
text = xmpp:mk_text(Txt, Lang),
xmlns = Xmlns},
send(State, Err);
_ ->
Err = #sm_failed{reason = 'bad-request', xmlns = Xmlns},
send(State, Err)
end.
@ -369,9 +366,6 @@ perform_stream_mgmt(Pkt, #{mgmt_xmlns := Xmlns, lang := Lang} = State) ->
Txt = <<"Stream management is already enabled">>,
send(State, #sm_failed{reason = 'unexpected-request',
text = xmpp:mk_text(Txt, Lang),
xmlns = Xmlns});
_ ->
send(State, #sm_failed{reason = 'bad-request',
xmlns = Xmlns})
end;
_ ->