mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix creation of type spec for map() options
This commit is contained in:
parent
c318b5f8a2
commit
27a1771deb
@ -417,7 +417,7 @@ spec(options, A, [Form|OForm], Mod) when A == 1; A == 2 ->
|
|||||||
end, {erl_types:t_none(), erl_types:t_none()}, Fs),
|
end, {erl_types:t_none(), erl_types:t_none()}, Fs),
|
||||||
case options_return_type(OForm) of
|
case options_return_type(OForm) of
|
||||||
map ->
|
map ->
|
||||||
erl_types:t_map(lists:flatten(Els), DefK, DefV);
|
erl_types:t_map(lists:keysort(1, lists:flatten(Els)), DefK, DefV);
|
||||||
dict ->
|
dict ->
|
||||||
t_remote(dict, dict);
|
t_remote(dict, dict);
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user