]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Fix try/catch indentation in NextcloudFileDatabaseManager
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 30 Jan 2023 19:29:15 +0000 (20:29 +0100)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 12 May 2023 05:21:16 +0000 (13:21 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseManager.swift

index ce68df992f2e3e28ee85b8f9a7231970f2cc215f..27d8f546edfc07bbb56f7f316f3b5c18172614e9 100644 (file)
@@ -45,10 +45,10 @@ class NextcloudFilesDatabaseManager : NSObject {
         let dbFolderPath = dbFolder.path
         do {
             try FileManager.default.createDirectory(at: dbFolder, withIntermediateDirectories: true)
-                try FileManager.default.setAttributes([FileAttributeKey.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication], ofItemAtPath: dbFolderPath)
-            } catch let error {
-                NSLog("Could not set permission level for File Provider database folder, received error: %@", error.localizedDescription)
-            }
+            try FileManager.default.setAttributes([FileAttributeKey.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication], ofItemAtPath: dbFolderPath)
+        } catch let error {
+            NSLog("Could not set permission level for File Provider database folder, received error: %@", error.localizedDescription)
+        }
 
         let config = Realm.Configuration(
             fileURL: self.databasePath,