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

Commit 7c53470

Browse files
committed
Update CodePush.js
1 parent 9c416cd commit 7c53470

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

CodePush.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ async function checkForUpdate(deploymentKey = null) {
7070
* because we want to avoid having to install diff updates against the binary's
7171
* version, which we can't do yet on Android.
7272
*/
73-
if (
74-
!update ||
75-
update.updateAppVersion ||
76-
localPackage && (update.packageHash === localPackage.packageHash) ||
77-
(!localPackage || localPackage.isRunningBinaryVersion) && config.packageHash === update.packageHash
78-
) {
73+
if (!update ||
74+
update.updateAppVersion ||
75+
localPackage && (update.packageHash === localPackage.packageHash) ||
76+
(!localPackage || localPackage.isRunningBinaryVersion) && config.packageHash === update.packageHash) {
7977
if (update && update.updateAppVersion) {
8078
log("An update is available but it is targeting a newer binary version than you are currently running.");
8179
}

0 commit comments

Comments
 (0)