From 116d9959c24d530d5ecdf442c0002b8a5c9ef186 Mon Sep 17 00:00:00 2001 From: sunnylqm <sunnylqm@gmail.com> Date: Fri, 9 Apr 2021 19:38:16 +0800 Subject: [PATCH] Fix completionHandler syntax error --- ios/RCTPushy/RCTPushy.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RCTPushy/RCTPushy.m b/ios/RCTPushy/RCTPushy.m index 431fc44..5375c4d 100644 --- a/ios/RCTPushy/RCTPushy.m +++ b/ios/RCTPushy/RCTPushy.m @@ -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