Skip to content

Commit

Permalink
[ci skip] Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
d-date authored and github-actions[bot] committed Mar 18, 2024
1 parent eef1a4d commit 1b5005d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions MyLibrary/Sources/ScheduleFeature/Schedule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ public struct Schedule {
Reduce { state, action in
switch action {
case .view(.onAppear):
return .send(.fetchResponse(Result {
let day1 = try dataClient.fetchDay1()
let day2 = try dataClient.fetchDay2()
let workshop = try dataClient.fetchWorkshop()
return .init(day1: day1, day2: day2, workshop: workshop)
}))
return .send(
.fetchResponse(
Result {
let day1 = try dataClient.fetchDay1()
let day2 = try dataClient.fetchDay2()
let workshop = try dataClient.fetchWorkshop()
return .init(day1: day1, day2: day2, workshop: workshop)
}))
case let .view(.disclosureTapped(session)):
guard let description = session.description, let speakers = session.speakers else {
return .none
Expand Down Expand Up @@ -108,10 +110,10 @@ public struct Schedule {
state.workshop = response.workshop
return .none
case let .fetchResponse(.failure(error as DecodingError)):
assertionFailure(error.localizedDescription)
return .none
assertionFailure(error.localizedDescription)
return .none
case let .fetchResponse(.failure(error)):
print(error) // TODO: replace to Logger API
print(error) // TODO: replace to Logger API
return .none
case .binding, .path, .destination:
return .none
Expand Down
4 changes: 2 additions & 2 deletions MyLibrary/Tests/ScheduleFeatureTests/Mocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension Conference {
time: Date(timeIntervalSince1970: 20_000),
sessions: [
.mock1,
.mock2
.mock2,
]
)
]
Expand All @@ -41,7 +41,7 @@ extension Conference {
time: Date(timeIntervalSince1970: 30_000),
sessions: [
.mock1,
.mock2
.mock2,
]
)
]
Expand Down

0 comments on commit 1b5005d

Please sign in to comment.