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

Commit 360fb33

Browse files
committed
feedback
1 parent f42bd71 commit 360fb33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CodePush.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ - (void)savePendingUpdate:(NSString *)packageHash
507507
rejecter:(RCTPromiseRejectBlock)reject)
508508
{
509509
// We only mark a pending update as succeeded only if it has been booted up
510-
// successfully, during which `didUpdate` is set to true.
510+
// successfully, during which `_isFirstRunAfterUpdate` is set to true.
511511
if (_isFirstRunAfterUpdate) {
512512
[CodePush removePendingUpdate];
513513
}

CodePushPackage.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ + (void)installPackage:(NSDictionary *)updatePackage
459459
return;
460460
}
461461

462-
if (!removePendingUpdate) {
462+
if (removePendingUpdate) {
463463
NSString *currentPackageFolderPath = [self getCurrentPackageFolderPath:error];
464464
if (!*error && currentPackageFolderPath) {
465465
// Error in deleting pending package will not cause the entire operation to fail.

0 commit comments

Comments
 (0)