Fixing typos

This commit is contained in:
Jonathan Carter
2016-04-18 09:45:14 -07:00
parent a3bd17a108
commit c7b6dd2891
4 changed files with 7 additions and 11 deletions

View File

@@ -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);
}