mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix EDoc error
This commit is contained in:
parent
dffb9cdaf9
commit
555a3113a1
@ -194,7 +194,8 @@ normalize_hosts([Host|Hosts], PrepHosts) ->
|
|||||||
exit("invalid hostname")
|
exit("invalid hostname")
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% @spec (Hosts::[string()]) -> ["localhost" | string()]
|
%% @spec (Hosts::[string()]) -> [Localhost::string() | [string()]]
|
||||||
|
%% @doc Return the list where the first is surely "localhost".
|
||||||
ensure_localhost_is_first(Hosts) ->
|
ensure_localhost_is_first(Hosts) ->
|
||||||
case lists:all(fun is_list/1, Hosts) of
|
case lists:all(fun is_list/1, Hosts) of
|
||||||
true ->
|
true ->
|
||||||
|
Loading…
Reference in New Issue
Block a user