David PHAM-VAN

Format obj-c code

@@ -74,8 +74,8 @@ @@ -74,8 +74,8 @@
74 74
75 - (void)sharePdf:(nonnull FlutterStandardTypedData*)data 75 - (void)sharePdf:(nonnull FlutterStandardTypedData*)data
76 withSourceRect:(CGRect)rect { 76 withSourceRect:(CGRect)rect {
77 - NSURL* tmpDirURL =  
78 - [NSURL fileURLWithPath:NSTemporaryDirectory() isDirectory:YES]; 77 + NSURL* tmpDirURL = [NSURL fileURLWithPath:NSTemporaryDirectory()
  78 + isDirectory:YES];
79 79
80 CFUUIDRef uuid = CFUUIDCreate(NULL); 80 CFUUIDRef uuid = CFUUIDCreate(NULL);
81 assert(uuid != NULL); 81 assert(uuid != NULL);
@@ -95,8 +95,9 @@ @@ -95,8 +95,9 @@
95 NSString* path = [fileURL path]; 95 NSString* path = [fileURL path];
96 96
97 NSError* error; 97 NSError* error;
98 - if (!  
99 - [[data data] writeToFile:path options:NSDataWritingAtomic error:&error]) { 98 + if (![[data data] writeToFile:path
  99 + options:NSDataWritingAtomic
  100 + error:&error]) {
100 NSLog(@"sharePdf error: %@", [error localizedDescription]); 101 NSLog(@"sharePdf error: %@", [error localizedDescription]);
101 return; 102 return;
102 } 103 }