mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	Fix completionHandler syntax error
This commit is contained in:
		| @@ -472,7 +472,7 @@ RCT_EXPORT_METHOD(markSuccess) | |||||||
|     NSString *bundlePatch = [unzipDir stringByAppendingPathComponent:BUNDLE_PATCH_NAME]; |     NSString *bundlePatch = [unzipDir stringByAppendingPathComponent:BUNDLE_PATCH_NAME]; | ||||||
|      |      | ||||||
|     NSString *destination = [unzipDir stringByAppendingPathComponent:BUNDLE_FILE_NAME]; |     NSString *destination = [unzipDir stringByAppendingPathComponent:BUNDLE_FILE_NAME]; | ||||||
|     void (^)(BOOL success) completionHandler=^(BOOL success) { |     void (^completionHandler)(BOOL success) = ^(BOOL success) { | ||||||
|         if (success) { |         if (success) { | ||||||
|             NSData *data = [NSData dataWithContentsOfFile:sourcePatch]; |             NSData *data = [NSData dataWithContentsOfFile:sourcePatch]; | ||||||
|             NSError *error = nil; |             NSError *error = nil; | ||||||
| @@ -500,7 +500,7 @@ RCT_EXPORT_METHOD(markSuccess) | |||||||
|             else |             else | ||||||
|                 callback([self errorWithMessage:ERROR_BSDIFF]); |                 callback([self errorWithMessage:ERROR_BSDIFF]); | ||||||
|         } |         } | ||||||
|     } |     }; | ||||||
|     if (isHPatch) |     if (isHPatch) | ||||||
|         [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; |         [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; | ||||||
|     else |     else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm