Browse Source

fix code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 năm trước cách đây
mục cha
commit
56769e2206
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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);
     }