mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Add some variable type hints
This commit is contained in:
parent
75f2e775ab
commit
7b2b9412ad
@ -105,7 +105,7 @@ register_route({global, Prefix}) ->
|
|||||||
register_route(Domain) when is_list(Domain) ->
|
register_route(Domain) when is_list(Domain) ->
|
||||||
register_route(Domain, undefined).
|
register_route(Domain, undefined).
|
||||||
|
|
||||||
register_route(Domain, LocalHint) ->
|
register_route(Domain, LocalHint) when is_list(Domain) ->
|
||||||
try
|
try
|
||||||
LDomain = exmpp_stringprep:nameprep(Domain),
|
LDomain = exmpp_stringprep:nameprep(Domain),
|
||||||
LDomainB = list_to_binary(LDomain),
|
LDomainB = list_to_binary(LDomain),
|
||||||
@ -204,7 +204,7 @@ delete_balanced_route(LDomain, Pid) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
force_unregister_route(Domain) ->
|
force_unregister_route(Domain) when is_binary(Domain) ->
|
||||||
LDomain = exmpp_stringprep:nameprep(Domain),
|
LDomain = exmpp_stringprep:nameprep(Domain),
|
||||||
F = fun() ->
|
F = fun() ->
|
||||||
case mnesia:match_object(
|
case mnesia:match_object(
|
||||||
|
Loading…
Reference in New Issue
Block a user