From 34ae8adf4df555e764866aac89e1383951b566d7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 1 Nov 2017 14:20:18 -0400 Subject: [PATCH] promise resolve shorthand --- src/models/domain/cipherString.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/models/domain/cipherString.ts b/src/models/domain/cipherString.ts index 3abb2109..a9fede1d 100644 --- a/src/models/domain/cipherString.ts +++ b/src/models/domain/cipherString.ts @@ -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) => {