mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-12 22:26:15 -04:00
Fix linter warnings
This commit is contained in:
parent
a2b3412b14
commit
704e261d39
5 changed files with 5 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
|||
excluded:
|
||||
- .build
|
||||
|
||||
closure_body_length:
|
||||
warning: 20
|
||||
error: 40
|
||||
large_tuple:
|
||||
warning: 3
|
||||
error: 5
|
||||
|
||||
line_length:
|
||||
warning: 200
|
||||
|
|
|
@ -127,7 +127,7 @@ class TaskManager: ObservableObject {
|
|||
]
|
||||
}
|
||||
|
||||
// swiftlint:disable:next function_parameter_count
|
||||
// swiftlint:disable:next function_body_length function_parameter_count
|
||||
static func taskGroups(
|
||||
for installer: Installer,
|
||||
destination destinationURL: URL?,
|
||||
|
|
|
@ -140,7 +140,7 @@ struct DownloadView: View {
|
|||
|
||||
private func checkForUserCancellation(_ failure: Error) -> Bool {
|
||||
|
||||
if let _: CancellationError = failure as? CancellationError {
|
||||
if failure as? CancellationError != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@ struct InstallerListRow: View {
|
|||
openPanel.accessoryView = NSHostingView(rootView: InstallerExportView(exports: $exports))
|
||||
openPanel.isAccessoryViewDisclosed = true
|
||||
|
||||
// swiftlint:disable:next closure_body_length
|
||||
Task {
|
||||
let response: NSApplication.ModalResponse = openPanel.runModal()
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@ class ShellExecutor: NSObject {
|
|||
static var shared: ShellExecutor = ShellExecutor()
|
||||
private var process: Process = Process()
|
||||
|
||||
// swiftlint:disable large_tuple
|
||||
|
||||
/// Executes custom shell commands.
|
||||
///
|
||||
/// - Parameters:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue