remove variable shadowing

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-07-19 18:54:19 +02:00
parent a3b99e9010
commit e7756003d7
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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 {