1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Fix completionHandler syntax error

This commit is contained in:
sunnylqm
2021-04-09 19:38:16 +08:00
parent 50d98a941c
commit 116d9959c2

View File

@@ -472,7 +472,7 @@ RCT_EXPORT_METHOD(markSuccess)
NSString *bundlePatch = [unzipDir stringByAppendingPathComponent:BUNDLE_PATCH_NAME];
NSString *destination = [unzipDir stringByAppendingPathComponent:BUNDLE_FILE_NAME];
void (^)(BOOL success) completionHandler=^(BOOL success) {
void (^completionHandler)(BOOL success) = ^(BOOL success) {
if (success) {
NSData *data = [NSData dataWithContentsOfFile:sourcePatch];
NSError *error = nil;
@@ -500,7 +500,7 @@ RCT_EXPORT_METHOD(markSuccess)
else
callback([self errorWithMessage:ERROR_BSDIFF]);
}
}
};
if (isHPatch)
[_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler];
else