SwiftFormat hoistTry

This commit is contained in:
Nindi Gill 2023-11-19 20:26:01 +11:00
parent 563e8cabce
commit 8d47623cc9
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1

View file

@ -152,10 +152,10 @@ class TaskManager: ObservableObject {
throw MistError.invalidDestinationURL throw MistError.invalidDestinationURL
} }
taskGroups += [ try taskGroups += [
( (
section: .download, section: .download,
tasks: try downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay) tasks: downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay)
) )
] ]
@ -234,10 +234,10 @@ class TaskManager: ObservableObject {
) throws -> [(section: MistTaskSection, tasks: [MistTask])] { ) throws -> [(section: MistTaskSection, tasks: [MistTask])] {
let cacheDirectoryURL: URL = .init(fileURLWithPath: cacheDirectory).appendingPathComponent(installer.id) let cacheDirectoryURL: URL = .init(fileURLWithPath: cacheDirectory).appendingPathComponent(installer.id)
let temporaryDirectoryURL: URL = .init(fileURLWithPath: .temporaryDirectory) let temporaryDirectoryURL: URL = .init(fileURLWithPath: .temporaryDirectory)
let taskGroups: [(section: MistTaskSection, tasks: [MistTask])] = [ let taskGroups: [(section: MistTaskSection, tasks: [MistTask])] = try [
( (
section: .download, section: .download,
tasks: try downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay) tasks: downloadTasks(for: installer, cacheDirectory: cacheDirectoryURL, retries: retries, delay: retryDelay)
), ),
( (
section: .setup, section: .setup,