mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-19 09:45:46 -04:00
Fix linter warnings
This commit is contained in:
parent
cbd75ab92b
commit
1a69693b07
3 changed files with 6 additions and 3 deletions
|
@ -9,7 +9,8 @@ import Blessed
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct AppCommands: Commands {
|
struct AppCommands: Commands {
|
||||||
@Environment(\.openURL) var openURL: OpenURLAction
|
@Environment(\.openURL)
|
||||||
|
var openURL: OpenURLAction
|
||||||
@ObservedObject var sparkleUpdater: SparkleUpdater
|
@ObservedObject var sparkleUpdater: SparkleUpdater
|
||||||
@Binding var refreshing: Bool
|
@Binding var refreshing: Bool
|
||||||
@Binding var downloadInProgress: Bool
|
@Binding var downloadInProgress: Bool
|
||||||
|
|
|
@ -9,7 +9,8 @@ import SwiftUI
|
||||||
|
|
||||||
// swiftlint:disable:next type_body_length
|
// swiftlint:disable:next type_body_length
|
||||||
struct RefreshView: View {
|
struct RefreshView: View {
|
||||||
@Environment(\.presentationMode) var presentationMode: Binding<PresentationMode>
|
@Environment(\.presentationMode)
|
||||||
|
var presentationMode: Binding<PresentationMode>
|
||||||
@Binding var firmwares: [Firmware]
|
@Binding var firmwares: [Firmware]
|
||||||
@Binding var installers: [Installer]
|
@Binding var installers: [Installer]
|
||||||
@State private var firmwaresState: RefreshState = .pending
|
@State private var firmwaresState: RefreshState = .pending
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct SettingsAboutView: View {
|
struct SettingsAboutView: View {
|
||||||
@Environment(\.openURL) var openURL: OpenURLAction
|
@Environment(\.openURL)
|
||||||
|
var openURL: OpenURLAction
|
||||||
private var version: String {
|
private var version: String {
|
||||||
Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
|
Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue