From 2d246f61dd75bcef3ca15dc30cbe0b399c9f6e2c Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Sun, 9 Sep 2018 09:59:08 +0300 Subject: Fix some dialyzer warnings --- src/ejabberd_auth_anonymous.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ejabberd_auth_anonymous.erl') diff --git a/src/ejabberd_auth_anonymous.erl b/src/ejabberd_auth_anonymous.erl index e3be79a43..3c4993cb0 100644 --- a/src/ejabberd_auth_anonymous.erl +++ b/src/ejabberd_auth_anonymous.erl @@ -177,10 +177,7 @@ plain_password_required(_) -> store_type(_) -> external. --spec opt_type(allow_multiple_connection) -> fun((boolean()) -> boolean()); - (anonymous_protocol) -> fun((sasl_anon | login_anon | both) -> - sasl_anon | login_anon | both); - (atom()) -> [atom()]. +-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()]. opt_type(allow_multiple_connections) -> fun (V) when is_boolean(V) -> V end; opt_type(anonymous_protocol) -> -- cgit v1.2.3