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

Commit d946f42

Browse files
committed
Update CodePush.js
1 parent f9558e9 commit d946f42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CodePush.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AcquisitionManager as Sdk } from "code-push/script/acquisition-sdk";
22
import { Alert } from "./AlertAdapter";
33
import requestFetchAdapter from "./request-fetch-adapter";
4-
import semver from "semver";
54
import { Platform } from "react-native";
65

76
let NativeCodePush = require("react-native").NativeModules.CodePush;
@@ -41,7 +40,7 @@ async function checkForUpdate(deploymentKey = null) {
4140
* in any updates for current app store version, regardless of hash.
4241
*/
4342
let queryPackage;
44-
if (localPackage && localPackage.appVersion && semver.compare(localPackage.appVersion, config.appVersion) === 0) {
43+
if (localPackage && localPackage.appVersion && localPackage.appVersion === config.appVersion) {
4544
queryPackage = localPackage;
4645
} else {
4746
queryPackage = { appVersion: config.appVersion };

0 commit comments

Comments
 (0)