This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ - (void)applicationWillResignActive
564
564
} else if (updateState == CodePushUpdateStateRunning && currentUpdateIsPending) {
565
565
// The caller wants the running update, but the current
566
566
// one is pending, so we need to grab the previous.
567
- resolve ([CodePushPackage getPreviousPackage: nil ]);
567
+ resolve ([CodePushPackage getPreviousPackage: &error ]);
568
568
} else {
569
569
// The current package satisfies the request:
570
570
// 1) Caller wanted a pending, and there is a pending update
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ + (NSString *)getCodePushPath
291
291
+ (NSDictionary *)getCurrentPackage : (NSError **)error
292
292
{
293
293
NSString *packageHash = [CodePushPackage getCurrentPackageHash: error];
294
-
295
294
if (*error || !packageHash) {
296
295
return nil ;
297
296
}
@@ -410,7 +409,6 @@ + (NSString *)getPackageFolderPath:(NSString *)packageHash
410
409
+ (NSDictionary *)getPreviousPackage : (NSError **)error
411
410
{
412
411
NSString *packageHash = [self getPreviousPackageHash: error];
413
-
414
412
if (*error || !packageHash) {
415
413
return nil ;
416
414
}
You can’t perform that action at this time.
0 commit comments