25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Fix typo in case clause detected by Dialyzer

This commit is contained in:
Badlop 2020-12-18 17:06:14 +01:00
parent cb6322a3a7
commit ac24d6ee9f

View File

@ -1244,7 +1244,7 @@ set_room_affiliation(Name, Service, JID, AffiliationString) ->
case mod_muc_room:change_item(Pid, jid:decode(JID), affiliation, Affiliation, <<"">>) of
{ok, _} ->
ok;
{error, not_found} ->
{error, notfound} ->
throw({error, "Room doesn't exists"});
{error, _} ->
throw({error, "Unable to perform change"})