File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Examples/CaseStudies/SwiftUICaseStudies Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
3032extension 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}
You can’t perform that action at this time.
0 commit comments