Skip to content

Commit

Permalink
Fix SwiftLint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ninxsoft committed Feb 25, 2024
1 parent 2cc427e commit ab732e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Mist/Helpers/TaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,9 @@ class TaskManager: ObservableObject {
},
MistTask(type: .create, description: "macOS Installer in temporary Disk Image") {
// Workaround to make OS X Yosemite 10.10 to macOS Catalina 10.15 createinstallmedia work on Apple Silicon
if let architecture: Architecture = Hardware.architecture,
architecture == .appleSilicon && !installer.bigSurOrNewer {
if
let architecture: Architecture = Hardware.architecture,
architecture == .appleSilicon, !installer.bigSurOrNewer {
try await Codesigner.adhocSign(installer.temporaryInstallerURL)
}

Expand Down Expand Up @@ -570,8 +571,9 @@ class TaskManager: ObservableObject {
let tasks: [MistTask] = [
MistTask(type: .create, description: "Bootable Installer") {
// Workaround to make OS X Yosemite 10.10 to macOS Catalina 10.15 createinstallmedia work on Apple Silicon
if let architecture: Architecture = Hardware.architecture,
architecture == .appleSilicon && !installer.bigSurOrNewer {
if
let architecture: Architecture = Hardware.architecture,
architecture == .appleSilicon, !installer.bigSurOrNewer {
try await Codesigner.adhocSign(installer.temporaryInstallerURL)
}

Expand Down
1 change: 0 additions & 1 deletion Mist/Views/List/ListRowInstaller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ struct ListRowInstaller: View {
}

var body: some View {
// swiftlint:disable:next closure_body_length
HStack {
ListRowDetail(
imageName: installer.imageName,
Expand Down

0 comments on commit ab732e9

Please sign in to comment.