Browse Source

fix code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
56769e2206
1 changed files with 1 additions and 3 deletions
  1. 1 3
      iOSClient/Utility/CCUtility.m

+ 1 - 3
iOSClient/Utility/CCUtility.m

@@ -755,9 +755,7 @@
     
     NSError *error = nil;
     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);
     }