mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 09:25:36 +08:00
Fixing typos
This commit is contained in:
@@ -519,8 +519,7 @@ public class CodePush implements ReactPackage {
|
||||
// The current package satisfies the request:
|
||||
// 1) Caller wanted a pending, and there is a pending update
|
||||
// 2) Caller wanted the running update, and there isn't a pending
|
||||
// 3) Calers wants the latest update, regardless if it's pending or not
|
||||
|
||||
// 3) Caller wants the latest update, regardless if it's pending or not
|
||||
if (isRunningBinaryVersion) {
|
||||
// This only matters in Debug builds. Since we do not clear "outdated" updates,
|
||||
// we need to indicate to the JS side that somehow we have a current update on
|
||||
@@ -528,8 +527,7 @@ public class CodePush implements ReactPackage {
|
||||
currentPackage.putBoolean("_isDebugOnly", true);
|
||||
}
|
||||
|
||||
// To support differentiating pending vs. non-pending updates
|
||||
// when request an update state of LATEST, provide an isPending flag
|
||||
// Enable differentiating pending vs. non-pending updates
|
||||
currentPackage.putBoolean("isPending", currentUpdateIsPending);
|
||||
promise.resolve(currentPackage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user