From e7756003d7b4bd304ecdf17885db91b99408253f Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 19 Jul 2022 18:54:19 +0200 Subject: [PATCH] remove variable shadowing Signed-off-by: Andy Scherzinger --- app/src/main/java/com/nextcloud/talk/users/UserManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/users/UserManager.kt b/app/src/main/java/com/nextcloud/talk/users/UserManager.kt index 7c4453f95..e803e33ed 100644 --- a/app/src/main/java/com/nextcloud/talk/users/UserManager.kt +++ b/app/src/main/java/com/nextcloud/talk/users/UserManager.kt @@ -117,8 +117,8 @@ class UserManager internal constructor(private val userRepository: UsersReposito val user = it.first() user.apply { current = true - }.also { user -> - userRepository.updateUser(user) + }.also { currentUser -> + userRepository.updateUser(currentUser) } Maybe.just(user) } else {