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
1 changed files with 1 additions and 1 deletions

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"})