collapsed an if statement

This commit is contained in:
Geoffrey Goh
2016-02-24 17:56:20 -08:00
parent 5a59ae2a19
commit cda2db13b3

View File

@@ -70,13 +70,10 @@ async function checkForUpdate(deploymentKey = null) {
return null;
} else {
if (Platform.OS === "android") {
// Diff updates against the binary version not supported on Android
if (!localPackage) {
const binaryHash = await NativeCodePush.getBinaryHash();
if (update.packageHash === binaryHash) {
return null;
}
if (Platform.OS === "android" && !localPackage) {
const binaryHash = await NativeCodePush.getBinaryHash();
if (update.packageHash === binaryHash) {
return null;
}
}