Browse Source

clear code

Marino Faggiana 7 years ago
parent
commit
7f500003fc
2 changed files with 3 additions and 1 deletions
  1. 2 0
      iOSClient/Main/CCMain.m
  2. 1 1
      iOSClient/Networking/NCNetworkingSync.m

+ 2 - 0
iOSClient/Main/CCMain.m

@@ -4068,11 +4068,13 @@
                                     handler:^(AHKActionSheet *as) {
                                         
                                         dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
+                                            
                                             if ([app.endToEndInterface deletemarkEndToEndFolderEncrypted:app.activeUrl fileID:_metadata.fileID serverUrl:[NSString stringWithFormat:@"%@/%@", self.serverUrl, _metadata.fileName]]) {
                                                 dispatch_async(dispatch_get_main_queue(), ^{
                                                     [self readFolder:self.serverUrl];
                                                 });
                                             }
+                                            
                                         });
                                     }];
         }

+ 1 - 1
iOSClient/Networking/NCNetworkingSync.m

@@ -45,7 +45,7 @@
         
     } failureRequest:^(NSURLResponse *response, NSString *redirectedServer, NSError *error) {
         
-        NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*)response;
+        NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
         
         returnError = [NSError errorWithDomain:@"com.nextcloud.nextcloud" code:httpResponse.statusCode userInfo:[NSDictionary dictionaryWithObject:@"Upload file error" forKey:NSLocalizedDescriptionKey]];
         dispatch_semaphore_signal(semaphore);