1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Fix some dialyzer warnings

This commit is contained in:
Evgeny Khramtsov 2018-09-09 09:59:08 +03:00
parent 9de2ca4568
commit 2d246f61dd
37 changed files with 49 additions and 258 deletions

View file

@ -219,9 +219,7 @@ url(Server, Path, Params) ->
url(Url, Custom++Params)
end.
-spec opt_type(ext_api_http_pool_size) -> fun((pos_integer()) -> pos_integer());
(ext_api_url) -> fun((binary()) -> binary());
(atom()) -> [atom()].
-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()].
opt_type(ext_api_http_pool_size) ->
fun (X) when is_integer(X), X > 0 -> X end;
opt_type(ext_api_url) ->