From 2a37539aed935637a50646a543f0218b30f83fd8 Mon Sep 17 00:00:00 2001 From: Brutus5000 Date: Thu, 10 Aug 2023 15:52:31 +0200 Subject: [PATCH] Apply spotless formatting --- .../userservice/ui/view/registration/RegisterView.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/faforever/userservice/ui/view/registration/RegisterView.kt b/src/main/kotlin/com/faforever/userservice/ui/view/registration/RegisterView.kt index be4aedcd..c2076a63 100644 --- a/src/main/kotlin/com/faforever/userservice/ui/view/registration/RegisterView.kt +++ b/src/main/kotlin/com/faforever/userservice/ui/view/registration/RegisterView.kt @@ -140,9 +140,11 @@ class RegisterView( getTranslation("register.username.taken"), ).bind("username") - binder.forField(email).withValidator(EmailValidator(getTranslation("register.email.invalid"))).withValidator( - { email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE }, - getTranslation("register.email.taken"), + binder.forField(email) + .withValidator(EmailValidator(getTranslation("register.email.invalid"))) + .withValidator( + { email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE }, + getTranslation("register.email.taken"), ).bind("email") binder.forField(termsOfService).asRequired(getTranslation("register.acknowledge.terms")).bind("termsOfService")