24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

Fix syntax not recognized by older erlang

This commit is contained in:
Paweł Chmielowski 2021-04-16 10:46:28 +02:00
parent 5b0f0d8352
commit 45bbbd0284

View File

@ -443,12 +443,13 @@ delete_group(Host, Group) ->
get_groups_opts_cached(Host1, Group1, Cache) ->
{Host, Group} = split_grouphost(Host1, Group1),
Key = {Group, Host},
case Cache of
#{{Group, Host} := Opts} ->
#{Key := Opts} ->
{Opts, Cache};
_ ->
Opts = get_group_opts_int(Host, Group),
{Opts, Cache#{{Group, Host} => Opts}}
{Opts, Cache#{Key => Opts}}
end.
get_group_opts(Host1, Group1) ->