promise resolve shorthand

This commit is contained in:
Kyle Spearrin 2017-11-01 14:20:18 -04:00
parent 3f354336ef
commit 34ae8adf4d
1 changed files with 1 additions and 3 deletions

View File

@ -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) => {