Skip to content

Commit 67ca1f0

Browse files
committed
Let comma dangle and remov unused code
1 parent 90fcc6f commit 67ca1f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/helpers/promise.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ export function newScope (fn, props, a1, a2) {
656656
var globalEnv = globalPSD.env;
657657
psd.env = patchGlobalPromise ? {
658658
Promise: DexiePromise, // Changing window.Promise could be omitted for Chrome and Edge, where IDB+Promise plays well!
659-
PromiseProp: {value: DexiePromise, configurable: true, writable: true}
659+
PromiseProp: {value: DexiePromise, configurable: true, writable: true},
660660
} : {};
661661
if (props) extend(psd, props);
662662

@@ -746,8 +746,6 @@ function switchToZone (targetZone, bEnteringZone) {
746746
if (currentZone === globalPSD) globalPSD.env = snapShot();
747747

748748
if (patchGlobalPromise) {
749-
// Let's patch the global and native Promises (may be same or may be different)
750-
var GlobalPromise = globalPSD.env.Promise;
751749
// Swich environments (may be PSD-zone or the global zone. Both apply.)
752750
var targetEnv = targetZone.env;
753751

@@ -764,7 +762,7 @@ function snapShot () {
764762
var GlobalPromise = _global.Promise;
765763
return patchGlobalPromise ? {
766764
Promise: GlobalPromise,
767-
PromiseProp: Object.getOwnPropertyDescriptor(_global, "Promise")
765+
PromiseProp: Object.getOwnPropertyDescriptor(_global, "Promise"),
768766
} : {};
769767
}
770768

0 commit comments

Comments
 (0)