1
0
Fork 0
mirror of https://github.com/bitwarden/android.git synced 2025-03-21 21:54:17 +03:00

Remove redundant call to set vault to unlocked ()

This commit is contained in:
David Perez 2024-04-03 11:49:41 -05:00 committed by Álison Fernandes
parent 4880dc58bd
commit 37fb1fadb8

View file

@ -363,15 +363,12 @@ class VaultLockManagerImpl(
} else {
// Retrieve the key. If non-null, unlock the user
authDiskSource.getUserAutoUnlockKey(userId = userId)?.let {
val result = unlockVaultForUser(
unlockVaultForUser(
userId = userId,
initUserCryptoMethod = InitUserCryptoMethod.DecryptedKey(
decryptedUserKey = it,
),
)
if (result is VaultUnlockResult.Success) {
setVaultToUnlocked(userId = userId)
}
}
}
}