From: Claudio Cambra Date: Mon, 30 Jan 2023 19:29:15 +0000 (+0100) Subject: Fix try/catch indentation in NextcloudFileDatabaseManager X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~96^2^2~55^2~244 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ceb9aa3b657a18a0d5e4c64383b2f43fe062f7fe;p=nextcloud-desktop.git Fix try/catch indentation in NextcloudFileDatabaseManager Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseManager.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseManager.swift index ce68df992..27d8f546e 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseManager.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseManager.swift @@ -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,