mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-28 14:04:49 -04:00
SwiftFormat emptyBraces
This commit is contained in:
parent
13fdc52072
commit
dac5248962
5 changed files with 5 additions and 5 deletions
|
@ -47,7 +47,7 @@ extension URL {
|
|||
}
|
||||
|
||||
return !data.isEmpty
|
||||
}) { }
|
||||
}) {}
|
||||
|
||||
let data: Data = .init(shasum.finalize())
|
||||
return data.map { String(format: "%02hhx", $0) }.joined()
|
||||
|
|
|
@ -13,7 +13,7 @@ import System
|
|||
class TaskManager: ObservableObject {
|
||||
static let shared: TaskManager = .init()
|
||||
@Published var taskGroups: [(section: MistTaskSection, tasks: [MistTask])]
|
||||
var task: Task<Any, Error> = Task { }
|
||||
var task: Task<Any, Error> = Task {}
|
||||
|
||||
var currentState: MistTaskState {
|
||||
let states: Set<MistTaskState> = Set(taskGroups.flatMap { $0.tasks }.map { $0.state })
|
||||
|
|
|
@ -22,6 +22,6 @@ struct ResetToDefaultButton: View {
|
|||
|
||||
struct ResetToDefaultButton_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ResetToDefaultButton { }
|
||||
ResetToDefaultButton {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ struct InstallerVolumeSelectionPickerView: View {
|
|||
|
||||
struct InstallerVolumeSelectionPickerView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
InstallerVolumeSelectionPickerView(selectedVolume: .constant(.placeholder), volumes: []) { }
|
||||
InstallerVolumeSelectionPickerView(selectedVolume: .constant(.placeholder), volumes: []) {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ struct SettingsInstallersCacheView: View {
|
|||
Alert(
|
||||
title: Text("An error has occured!"),
|
||||
message: Text("There was an error removing the cached Installer directory. Show in Finder to remove manually."),
|
||||
primaryButton: .default(Text("OK")) { },
|
||||
primaryButton: .default(Text("OK")) {},
|
||||
secondaryButton: .default(Text("Show in Finder")) { showInFinder() }
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue