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

Commit cda2db1

Browse files
committed
collapsed an if statement
1 parent 5a59ae2 commit cda2db1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

CodePush.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,10 @@ async function checkForUpdate(deploymentKey = null) {
7070

7171
return null;
7272
} else {
73-
if (Platform.OS === "android") {
74-
// Diff updates against the binary version not supported on Android
75-
if (!localPackage) {
76-
const binaryHash = await NativeCodePush.getBinaryHash();
77-
if (update.packageHash === binaryHash) {
78-
return null;
79-
}
73+
if (Platform.OS === "android" && !localPackage) {
74+
const binaryHash = await NativeCodePush.getBinaryHash();
75+
if (update.packageHash === binaryHash) {
76+
return null;
8077
}
8178
}
8279

0 commit comments

Comments
 (0)