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

Commit 850a234

Browse files
committed
removing redundancy
1 parent 5c6ef09 commit 850a234

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

HybridMobileDeploy.ios.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ function queryUpdate(callback) {
5151
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback);
5252
} else if (localPackage == null) {
5353
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback);
54+
} else if (localPackage.appVersion !== configuration.appVersion) {
55+
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback)
5456
} else {
55-
if (localPackage.appVersion !== configuration.appVersion) {
56-
sdk.queryUpdateWithCurrentPackage(defaultPackage, callback)
57-
} else {
58-
sdk.queryUpdateWithCurrentPackage(localPackage, callback);
59-
}
57+
sdk.queryUpdateWithCurrentPackage(localPackage, callback);
6058
}
6159
});
6260
});

0 commit comments

Comments
 (0)