aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-29 11:48:57 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-29 11:48:57 +0300
commit2b63d07329b2af63d63b14d237e63565f78e8018 (patch)
tree3a4b245b5d50cb4f54a6777d20e138efed105835 /src/extauth.erl
parentFix elixir tests (diff)
parentDon't validate an option in ejabberd_config:get_option() functions (diff)
Merge branch 'new-option-validation'
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index 6ec7e7760..c6f25102c 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -105,11 +105,7 @@ random_instance(MaxNum) ->
randoms:uniform(MaxNum) - 1.
get_instances(Server) ->
- ejabberd_config:get_option(
- {extauth_instances, Server},
- fun(V) when is_integer(V), V > 0 ->
- V
- end, 1).
+ ejabberd_config:get_option({extauth_instances, Server}, 1).
loop(Port, Timeout, ProcessName, ExtPrg) ->
receive