mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
mod_stream_mgmt: Remove dead case clauses
This commit is contained in:
parent
b915469f5e
commit
3a566e3cdf
@ -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;
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user