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

Commit 434baeb

Browse files
committed
else if
1 parent 7bb4e10 commit 434baeb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CodePushPackage.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
211211
withIntermediateDirectories:YES
212212
attributes:nil
213213
error:&error];
214-
}
215-
216-
if ([[NSFileManager defaultManager] fileExistsAtPath:newPackageFolderPath]) {
214+
} else if ([[NSFileManager defaultManager] fileExistsAtPath:newPackageFolderPath]) {
217215
// This removes any stale data in newPackageFolderPath that could have been left
218216
// uncleared due to a crash or error during the download or install process.
219217
[[NSFileManager defaultManager] removeItemAtPath:newPackageFolderPath

0 commit comments

Comments
 (0)