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() val user = it.first()
user.apply { user.apply {
current = true current = true
}.also { user -> }.also { currentUser ->
userRepository.updateUser(user) userRepository.updateUser(currentUser)
} }
Maybe.just(user) Maybe.just(user)
} else { } else {