From 182c3d6f593b490806130f69219256af57265a51 Mon Sep 17 00:00:00 2001 From: y9vad9 Date: Sun, 11 Jun 2023 16:16:33 +0200 Subject: [PATCH] fix: invalid ConfirmationCode validator --- .../sdk/authorization/sessions/types/value/ConfirmationCode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/commonMain/kotlin/io/timemates/sdk/authorization/sessions/types/value/ConfirmationCode.kt b/sdk/src/commonMain/kotlin/io/timemates/sdk/authorization/sessions/types/value/ConfirmationCode.kt index f31043f..343c717 100644 --- a/sdk/src/commonMain/kotlin/io/timemates/sdk/authorization/sessions/types/value/ConfirmationCode.kt +++ b/sdk/src/commonMain/kotlin/io/timemates/sdk/authorization/sessions/types/value/ConfirmationCode.kt @@ -10,7 +10,7 @@ public value class ConfirmationCode private constructor(public val string: Strin override fun create(input: String): Result { return when { - input.isBlank() -> Result.failure(CreationFailure.ofBlankValue()) + input.isBlank() -> Result.failure(CreationFailure.ofBlank()) input.length != SIZE -> Result.failure(CreationFailure.ofSizeExact(SIZE)) else -> Result.success(ConfirmationCode(input)) }