mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
promise resolve shorthand
This commit is contained in:
@@ -92,9 +92,7 @@ class CipherString {
|
|||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
if (this.decryptedValue) {
|
if (this.decryptedValue) {
|
||||||
return new Promise((resolve) => {
|
return Promise.resolve(self.decryptedValue);
|
||||||
resolve(self.decryptedValue);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return self.cryptoService.getOrgKey(orgId).then((orgKey: any) => {
|
return self.cryptoService.getOrgKey(orgId).then((orgKey: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user