Skip to content

Commit

Permalink
chore: remove some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Jul 19, 2024
1 parent 3b441c2 commit de31aeb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct BowlerDetails: Reducer {
LeaguesSection()
}

Reduce<State, Action> { state, action in
Reduce<State, Action> { _, action in
switch action {
case let .view(viewAction):
switch viewAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public struct BowlerDetailsHeader: Reducer {
public init() {}

public var body: some ReducerOf<Self> {
Reduce<State, Action> { state, action in
Reduce<State, Action> { _, action in
switch action {
case let .view(viewAction):
switch viewAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ public struct LeaguesSection: Reducer {
state.destination = .editor(LeagueEditor.State(value: .edit(league)))
return recentlyUsed.didRecentlyUse(.leagues, id: league.id, in: self)

case let .didLoadLeagues(.failure(error)):
case .didLoadLeagues(.failure):
// TODO: handle error
return .none

case let .didLoadLeagueToView(.failure(error)),
let .didLoadEventSeriesToView(.failure(error)),
let .didLoadLeagueForEdits(.failure(error)):
case .didLoadLeagueToView(.failure),
.didLoadEventSeriesToView(.failure),
.didLoadLeagueForEdits(.failure):
// TODO: handle error
return .none

Expand Down
2 changes: 1 addition & 1 deletion ios/Approach/Sources/ImportExportFeature/Import.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import AssetsLibrary
import ComposableArchitecture
import DateTimeLibrary
import EquatablePackageLibrary
import ErrorsFeature
import ErrorReportingClientPackageLibrary
import ErrorsFeature
import FeatureActionLibrary
import Foundation
import ImportExportServiceInterface
Expand Down
30 changes: 8 additions & 22 deletions ios/Approach/Sources/SettingsFeature/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,28 +228,14 @@ public struct Settings: Reducer {
state.isLoadingAppIcon = false
return .none

case .destination(.presented(.archive(.delegate(.doNothing)))):
return .none

case .destination(.presented(.featureFlags(.delegate(.doNothing)))):
return .none

case .destination(.presented(.opponentsList(.delegate(.doNothing)))):
return .none

case .destination(.presented(.statistics(.delegate(.doNothing)))):
return .none

case .destination(.presented(.appIcon(.delegate(.doNothing)))):
return .none

case .destination(.presented(.analytics(.delegate(.doNothing)))):
return .none

case .destination(.presented(.export(.delegate(.doNothing)))):
return .none

case .destination(.presented(.import(.delegate(.doNothing)))):
case .destination(.presented(.archive(.delegate(.doNothing)))),
.destination(.presented(.featureFlags(.delegate(.doNothing)))),
.destination(.presented(.opponentsList(.delegate(.doNothing)))),
.destination(.presented(.statistics(.delegate(.doNothing)))),
.destination(.presented(.appIcon(.delegate(.doNothing)))),
.destination(.presented(.analytics(.delegate(.doNothing)))),
.destination(.presented(.export(.delegate(.doNothing)))),
.destination(.presented(.import(.delegate(.doNothing)))):
return .none

case .destination(.dismiss):
Expand Down

0 comments on commit de31aeb

Please sign in to comment.