mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-28 14:04:49 -04:00
SwiftFormat andOperator
This commit is contained in:
parent
c75d1007ee
commit
da8eeb0f29
4 changed files with 6 additions and 6 deletions
|
@ -402,7 +402,7 @@ class TaskManager: ObservableObject {
|
|||
}
|
||||
]
|
||||
|
||||
if diskImageSign && !diskImageSigningIdentity.isEmpty && diskImageSigningIdentity != "-" {
|
||||
if diskImageSign, !diskImageSigningIdentity.isEmpty, diskImageSigningIdentity != "-" {
|
||||
tasks += [
|
||||
MistTask(type: .codesign, description: "Disk Image") {
|
||||
try await Codesigner.sign(temporaryImageURL, identity: diskImageSigningIdentity)
|
||||
|
|
|
@ -64,11 +64,11 @@ struct ActivityView: View {
|
|||
ForEach(taskGroup.tasks.indices, id: \.self) { index in
|
||||
VStack {
|
||||
ActivityRowView(state: taskGroup.tasks[index].state, description: taskGroup.tasks[index].currentDescription, degrees: degrees)
|
||||
if taskGroup.tasks[index].type == .download && taskGroup.tasks[index].state != .pending,
|
||||
if taskGroup.tasks[index].type == .download, taskGroup.tasks[index].state != .pending,
|
||||
let size: UInt64 = taskGroup.tasks[index].downloadSize {
|
||||
ActivityProgressView(state: taskGroup.tasks[index].state, value: value, size: size)
|
||||
}
|
||||
if venturaOrOlder && index != taskGroup.tasks.count {
|
||||
if venturaOrOlder, index != taskGroup.tasks.count {
|
||||
Divider()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,11 +73,11 @@ struct InstallerExportView: View {
|
|||
private func updateExports() {
|
||||
var exports: [InstallerExportType] = []
|
||||
|
||||
if !isoCompatible && exportISO {
|
||||
if !isoCompatible, exportISO {
|
||||
exportISO = false
|
||||
}
|
||||
|
||||
if !exportApplication && !exportDiskImage && !exportISO && !exportPackage {
|
||||
if !exportApplication, !exportDiskImage, !exportISO, !exportPackage {
|
||||
exportApplication = true
|
||||
}
|
||||
|
||||
|
|
|
@ -256,7 +256,7 @@ struct RefreshView: View {
|
|||
guard let name: String = nameFromDistribution(string),
|
||||
let version: String = versionFromDistribution(string),
|
||||
let build: String = buildFromDistribution(string),
|
||||
!name.isEmpty && !version.isEmpty && !build.isEmpty else {
|
||||
!name.isEmpty, !version.isEmpty, !build.isEmpty else {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue