mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
promise resolve shorthand
This commit is contained in:
parent
3f354336ef
commit
34ae8adf4d
@ -92,9 +92,7 @@ class CipherString {
|
||||
const self = this;
|
||||
|
||||
if (this.decryptedValue) {
|
||||
return new Promise((resolve) => {
|
||||
resolve(self.decryptedValue);
|
||||
});
|
||||
return Promise.resolve(self.decryptedValue);
|
||||
}
|
||||
|
||||
return self.cryptoService.getOrgKey(orgId).then((orgKey: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user