conforming to coding guidelines 4

This commit is contained in:
kg422
2015-08-14 12:07:16 -07:00
parent 718e67d821
commit 5c6ef09d7b

View File

@@ -106,7 +106,7 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage
// TODO send file path
callback(@[RCTMakeError(@"Error saving file", err, [[NSDictionary alloc] initWithObjectsAndKeys:[HybridMobileDeploy getBundlePath],@"bundlePath", nil])]);
} else {
// save the package info too
// Save the package info too.
NSString *packageFolderPath = [HybridMobileDeploy getPackageFolderPath];
if (![[NSFileManager defaultManager] fileExistsAtPath:packageFolderPath]) {
[[NSFileManager defaultManager] createDirectoryAtPath:packageFolderPath withIntermediateDirectories:YES attributes:nil error:&saveError];