Explorar el Código

fix code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana hace 2 años
padre
commit
56769e2206
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      iOSClient/Utility/CCUtility.m

+ 1 - 3
iOSClient/Utility/CCUtility.m

@@ -755,9 +755,7 @@
     
     
     NSError *error = nil;
     NSError *error = nil;
     BOOL success = [URL setResourceValue:[NSNumber numberWithBool: YES] forKey: NSURLIsExcludedFromBackupKey error: &error];
     BOOL success = [URL setResourceValue:[NSNumber numberWithBool: YES] forKey: NSURLIsExcludedFromBackupKey error: &error];
-    if(success) {
-        NSLog(@"Excluding %@ from backup", [URL lastPathComponent]);
-    } else {
+    if(!success){
         NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
         NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
     }
     }