From a45e752a01b7e8fd5571a15e841e8191afb82010 Mon Sep 17 00:00:00 2001 From: addison Date: Thu, 4 Nov 2021 16:19:55 -0400 Subject: [PATCH] [refactor] Remove an unecassary parameter from a StorageOptions instance --- common/src/services/vaultTimeout.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/services/vaultTimeout.service.ts b/common/src/services/vaultTimeout.service.ts index 95287040..0d8c63bc 100644 --- a/common/src/services/vaultTimeout.service.ts +++ b/common/src/services/vaultTimeout.service.ts @@ -45,7 +45,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction { // Keys aren't stored for a device that is locked or logged out. async isLocked(userId?: string): Promise { const neverLock = await this.cryptoService.hasKeyStored(KeySuffixOptions.Auto, userId) && - !(await this.stateService.getEverBeenUnlocked(userId ? {userId: userId, storageLocation: StorageLocation.Disk} : null)); + !(await this.stateService.getEverBeenUnlocked({ userId: userId })); if (neverLock) { return (await this.cryptoService.getKey(KeySuffixOptions.Auto, userId)) != null; }