mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 07:10:36 +08:00
removing redundancy
This commit is contained in:
@@ -51,12 +51,10 @@ function queryUpdate(callback) {
|
||||
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback);
|
||||
} else if (localPackage == null) {
|
||||
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback);
|
||||
} else if (localPackage.appVersion !== configuration.appVersion) {
|
||||
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback)
|
||||
} else {
|
||||
if (localPackage.appVersion !== configuration.appVersion) {
|
||||
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback)
|
||||
} else {
|
||||
sdk.queryUpdateWithCurrentPackage(localPackage, callback);
|
||||
}
|
||||
sdk.queryUpdateWithCurrentPackage(localPackage, callback);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user