diff --git a/Core/Sources/Core/AppConfig.swift b/Core/Sources/Core/AppConfig.swift index fd4c482cc..4b40d826c 100644 --- a/Core/Sources/Core/AppConfig.swift +++ b/Core/Sources/Core/AppConfig.swift @@ -36,10 +36,10 @@ public final class AppConfig { public static let dataFolder: URL = { #if os(macOS) - var dataFolder = try FileManager.default.url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: false) + var dataFolder = try! FileManager.default.url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: false) dataFolder = dataFolder.appendingPathComponent(appName) - try FileManager.default.createDirectory(at: dataFolder, withIntermediateDirectories: true, attributes: nil) + try! FileManager.default.createDirectory(at: dataFolder, withIntermediateDirectories: true, attributes: nil) return dataFolder #elseif os(iOS)