Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <ios@nextcloud.com>2022-08-05 14:28:22 +0300
committermarinofaggiana <ios@nextcloud.com>2022-08-05 14:28:22 +0300
commit56769e22068c14595483e77248ac7506e5c483f6 (patch)
treeb5399a685f22b3f9e7c18dd3c635387428f2610d
parent7bb634aac330bacc83bd6f3bb50b3df6eb601669 (diff)
fix code
Signed-off-by: marinofaggiana <ios@nextcloud.com>
-rw-r--r--iOSClient/Utility/CCUtility.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/iOSClient/Utility/CCUtility.m b/iOSClient/Utility/CCUtility.m
index 2cfc02c84..a7def701a 100644
--- a/iOSClient/Utility/CCUtility.m
+++ b/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);
}