Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 5533643

Browse files
committed
Fixing typo and promise rejection
1 parent c64b76c commit 5533643

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CodePush.ios.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getCurrentPackage() {
5757
NativeCodePush.getCurrentPackage()
5858
.then((currentPackage) => {
5959
localPackage = currentPackage;
60-
return NativeCodePush.isFailedUpdate(currentPackage.packageHash)
60+
return NativeCodePush.isFailedUpdate(currentPackage.packageHash);
6161
})
6262
.then((failedUpdate) => {
6363
localPackage.failedApply = failedUpdate;
@@ -104,7 +104,9 @@ function checkForUpdate() {
104104
} else {
105105
resolve(update);
106106
}
107-
});
107+
})
108+
.catch(reject)
109+
.done();
108110
});
109111
});
110112
}

0 commit comments

Comments
 (0)