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
564564 } else if (updateState == CodePushUpdateStateRunning && currentUpdateIsPending) {
565565 // The caller wants the running update, but the current
566566 // one is pending, so we need to grab the previous.
567- resolve ([CodePushPackage getPreviousPackage: nil ]);
567+ resolve ([CodePushPackage getPreviousPackage: &error ]);
568568 } else {
569569 // The current package satisfies the request:
570570 // 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
291291+ (NSDictionary *)getCurrentPackage : (NSError **)error
292292{
293293 NSString *packageHash = [CodePushPackage getCurrentPackageHash: error];
294-
295294 if (*error || !packageHash) {
296295 return nil ;
297296 }
@@ -410,7 +409,6 @@ + (NSString *)getPackageFolderPath:(NSString *)packageHash
410409+ (NSDictionary *)getPreviousPackage : (NSError **)error
411410{
412411 NSString *packageHash = [self getPreviousPackageHash: error];
413-
414412 if (*error || !packageHash) {
415413 return nil ;
416414 }
You can’t perform that action at this time.
0 commit comments