From c9e1e63b13331461f8585690963cbd9eeaf9bf2f Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Thu, 12 Dec 2024 11:22:12 +0100 Subject: [PATCH] refactor: Make "address" argument names coherent between the two methods --- .../multiplatform_swisstransfer/managers/UploadManager.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/UploadManager.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/UploadManager.kt index b57fd396..56e0c41a 100644 --- a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/UploadManager.kt +++ b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/UploadManager.kt @@ -324,8 +324,8 @@ class UploadManager( UnexpectedApiErrorFormatException::class, UnknownException::class, ) - suspend fun verifyEmailCode(code: String, email: String): AuthorEmailToken { - return uploadRepository.verifyEmailCode(VerifyEmailCodeBody(code, email)) + suspend fun verifyEmailCode(code: String, address: String): AuthorEmailToken { + return uploadRepository.verifyEmailCode(VerifyEmailCodeBody(code, address)) } @Throws( @@ -335,9 +335,9 @@ class UploadManager( UnexpectedApiErrorFormatException::class, UnknownException::class, ) - suspend fun resendEmailCode(emailAddress: String) { + suspend fun resendEmailCode(address: String) { val language = emailLanguageUtils.getEmailLanguageFromLocal() - uploadRepository.resendEmailCode(ResendEmailCodeBody(emailAddress, language.code)) + uploadRepository.resendEmailCode(ResendEmailCodeBody(address, language.code)) } private suspend fun addTransferByLinkUUID(