[lint] fix swiftlint warnings
This commit is contained in:
parent
8425dd94b1
commit
b2320c057a
|
@ -33,7 +33,7 @@ extension AppReducer {
|
|||
]
|
||||
)
|
||||
|
||||
private static let routeReducer = AppReducer { state, action, environment in
|
||||
private static let routeReducer = AppReducer { state, action, _ in
|
||||
switch action {
|
||||
case let .updateRoute(route):
|
||||
state.route = route
|
||||
|
@ -56,7 +56,7 @@ extension AppReducer {
|
|||
private static let onboardingReducer: AppReducer = OnboardingReducer.default.pullback(
|
||||
state: \AppState.onboardingState,
|
||||
action: /AppAction.onboarding,
|
||||
environment: { _ in }
|
||||
environment: { _ in }
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@ extension HomeStore {
|
|||
action: HomeAction.profile
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - HomeViewStore
|
||||
|
@ -165,4 +164,3 @@ extension HomeState {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ struct ProfileEnvironment {
|
|||
typealias ProfileReducer = Reducer<ProfileState, ProfileAction, ProfileEnvironment>
|
||||
|
||||
extension ProfileReducer {
|
||||
static let `default` = ProfileReducer { state, action, environment in
|
||||
static let `default` = ProfileReducer { state, action, _ in
|
||||
switch action {
|
||||
case let .updateRoute(route):
|
||||
state.route = route
|
||||
|
@ -78,4 +78,3 @@ extension ProfileState {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ struct RequestEnvironment: Equatable {
|
|||
typealias RequestReducer = Reducer<RequestState, RequestAction, RequestEnvironment>
|
||||
|
||||
extension RequestReducer {
|
||||
static let `default` = RequestReducer { state, action, environment in
|
||||
static let `default` = RequestReducer { _, action, _ in
|
||||
switch action {
|
||||
default:
|
||||
return .none
|
||||
|
|
|
@ -15,7 +15,7 @@ struct ScanEnvironment: Equatable {
|
|||
typealias ScanReducer = Reducer<ScanState, ScanAction, ScanEnvironment>
|
||||
|
||||
extension ScanReducer {
|
||||
static let `default` = ScanReducer { state, action, environment in
|
||||
static let `default` = ScanReducer { _, action, _ in
|
||||
switch action {
|
||||
default:
|
||||
return .none
|
||||
|
|
|
@ -15,7 +15,7 @@ struct SettingsEnvironment: Equatable {
|
|||
typealias SettingsReducer = Reducer<SettingsState, SettingsAction, SettingsEnvironment>
|
||||
|
||||
extension SettingsReducer {
|
||||
static let `default` = SettingsReducer { state, action, environment in
|
||||
static let `default` = SettingsReducer { _, action, _ in
|
||||
switch action {
|
||||
default:
|
||||
return .none
|
||||
|
|
|
@ -15,7 +15,7 @@ struct WalletInfoEnvironment: Equatable {
|
|||
typealias WalletInfoReducer = Reducer<WalletInfoState, WalletInfoAction, WalletInfoEnvironment>
|
||||
|
||||
extension WalletInfoReducer {
|
||||
static let `default` = WalletInfoReducer { state, action, environment in
|
||||
static let `default` = WalletInfoReducer { _, action, _ in
|
||||
switch action {
|
||||
default:
|
||||
return .none
|
||||
|
|
Loading…
Reference in New Issue