mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-27 13:03:12 -05:00
minor, spacing
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
dd1129b484
commit
d9fefca841
@ -57,7 +57,7 @@ object CaptchaProviders {
|
||||
|
||||
def getProvider(param: Parameters): ChallengeProvider = {
|
||||
val providerConfig = filterProviderByParam(param).toList
|
||||
if (providerConfig.length == 0) throw new NoSuchElementException(ErrorMessageEnum.NO_CAPTCHA.toString)
|
||||
if (providerConfig.length == 0) throw new NoSuchElementException(ErrorMessageEnum.NO_CAPTCHA.toString)
|
||||
val randomIndex = getNextRandomInt(providerConfig.length)
|
||||
val providerIndex = providerConfig(randomIndex)._1
|
||||
val selectedProvider = providers(providerIndex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user