This commit is contained in:
Geoffrey Goh
2016-02-05 23:01:28 -08:00
parent 340bb7e74a
commit f42bd71ccc
2 changed files with 4 additions and 4 deletions

View File

@@ -506,8 +506,8 @@ RCT_EXPORT_METHOD(isFirstRun:(NSString *)packageHash
RCT_EXPORT_METHOD(notifyApplicationReady:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
// We only mark a pending update as succeeded only if it update has been booted up,
// during which `_isFirstRunAfterUpdate` is true.
// We only mark a pending update as succeeded only if it has been booted up
// successfully, during which `didUpdate` is set to true.
if (_isFirstRunAfterUpdate) {
[CodePush removePendingUpdate];
}

View File

@@ -539,8 +539,8 @@ public class CodePush {
@ReactMethod
public void notifyApplicationReady(Promise promise) {
// We only mark a pending update as succeeded only if it update has been booted up,
// during which `didUpdate` is true.
// We only mark a pending update as succeeded only if it has been booted up
// successfully, during which `didUpdate` is set to true.
if (didUpdate) {
removePendingUpdate();
}