mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fix syntax not recognized by older erlang
This commit is contained in:
parent
5b0f0d8352
commit
45bbbd0284
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user