1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 02:09:33 +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

@ -680,8 +680,7 @@ format({Key, Val}) when is_binary(Val) ->
format({Key, Val}) -> % TODO: improve Yaml parsing
{Key, Val}.
-spec opt_type(allow_contrib_modules) -> fun((boolean()) -> boolean());
(atom()) -> [atom()].
-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()].
opt_type(allow_contrib_modules) ->
fun (false) -> false;
(no) -> false;