mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-06-07 02:01:19 -04:00
SwiftFormat hoistTry
This commit is contained in:
parent
563e8cabce
commit
8d47623cc9
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue