summaryrefslogtreecommitdiff
path: root/src/ejabberd_ctl.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2018-09-09 09:59:08 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2018-09-09 09:59:08 +0300
commit2d246f61dd75bcef3ca15dc30cbe0b399c9f6e2c (patch)
treed7f37b1b12955d8a998d6cdb50fd03e47755875c /src/ejabberd_ctl.erl
parentMerge pull request #2597 from dmitryDemchenko/master (diff)
Fix some dialyzer warnings
Diffstat (limited to 'src/ejabberd_ctl.erl')
-rw-r--r--src/ejabberd_ctl.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index f5d51036..c7164956 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -874,8 +874,7 @@ print(Format, Args) ->
%% ["aaaa bbb ccc"].
--spec opt_type(ejabberdctl_access_commands) -> fun((list()) -> list());
- (atom()) -> [atom()].
+-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()].
opt_type(ejabberdctl_access_commands) ->
fun (V) when is_list(V) -> V end;
opt_type(_) -> [ejabberdctl_access_commands].