From 4aacd3e53aad0cf9382a81cc7661cddb3dfdd98d Mon Sep 17 00:00:00 2001 From: Sheikah45 Date: Sun, 10 Sep 2023 16:37:18 -0400 Subject: [PATCH] spotless apply --- .../userservice/ui/view/registration/RegisterView.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 f070b162..4062a00c 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 @@ -89,7 +89,7 @@ class RegisterView(private val registrationService: RegistrationService, fafProp ), Anchor( fafProperties.account().registration().privacyStatementUrl(), - getTranslation("register.privacy") + getTranslation("register.privacy"), ).apply { addClassName("policy-link") }, ) val rulesLayout = CompactHorizontalLayout( @@ -97,7 +97,7 @@ class RegisterView(private val registrationService: RegistrationService, fafProp Text(readAndAgree), Anchor( fafProperties.account().registration().rulesUrl(), - getTranslation("register.rules") + getTranslation("register.rules"), ).apply { addClassName("policy-link") }, ) @@ -121,9 +121,9 @@ class RegisterView(private val registrationService: RegistrationService, fafProp ).bind("username") binder.forField(email).withValidator(EmailValidator(getTranslation("register.email.invalid"))).withValidator( - { email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE }, - getTranslation("register.email.taken"), - ).bind("email") + { email -> registrationService.emailAvailable(email) == EmailStatus.EMAIL_AVAILABLE }, + getTranslation("register.email.taken"), + ).bind("email") binder.forField(termsOfService).asRequired(getTranslation("register.acknowledge.terms")).bind("termsOfService")