Skip to content

Commit fdd1fb2

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent 14c6b5b commit fdd1fb2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Examples/CaseStudies/SwiftUICaseStudies/FactClient.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ extension FactClient {
1414
// main feature doesn't need to compile it.
1515
static let live = Self(
1616
fetch: { number in
17-
URLSession.shared.dataTaskPublisher(for: URL(string: "http://numbersapi.com/\(number)/trivia")!)
17+
URLSession.shared.dataTaskPublisher(
18+
for: URL(string: "http://numbersapi.com/\(number)/trivia")!
19+
)
1820
.map { data, _ in String(decoding: data, as: UTF8.self) }
1921
.catch { _ in
2022
// Sometimes numbersapi.com can be flakey, so if it ever fails we will just
@@ -24,15 +26,15 @@ extension FactClient {
2426
}
2527
.setFailureType(to: Error.self)
2628
.eraseToEffect()
27-
})
29+
})
2830
}
2931

3032
extension FactClient {
3133
// This is the "unimplemented" fact dependency that is useful to plug into tests that you want
3234
// to prove do not need the dependency.
3335
static let unimplemented = Self(
3436
fetch: { _ in
35-
XCTFail("\(Self.self).fact is unimplemented.")
36-
return .none
37-
})
37+
XCTFail("\(Self.self).fact is unimplemented.")
38+
return .none
39+
})
3840
}

0 commit comments

Comments
 (0)