Skip to content

Commit 2975d41

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent e5e10d8 commit 2975d41

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/ComposableArchitecture/Effects/Cancellation.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ extension Effect {
2929
/// canceled before starting this new one.
3030
/// - Returns: A new effect that is capable of being canceled by an identifier.
3131
public func cancellable(id: AnyHashable, cancelInFlight: Bool = false) -> Effect {
32-
let effect = Deferred { () -> Publishers.HandleEvents<Publishers.PrefixUntilOutput<Self, PassthroughSubject<Void, Never>>> in
32+
let effect = Deferred {
33+
()
34+
-> Publishers.HandleEvents<
35+
Publishers.PrefixUntilOutput<Self, PassthroughSubject<Void, Never>>
36+
> in
3337
cancellablesLock.lock()
3438
defer { cancellablesLock.unlock() }
3539

Tests/ComposableArchitectureTests/EffectCancellationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ final class EffectCancellationTests: XCTestCase {
286286
scheduler.advance(by: 1)
287287
XCTAssertNoDifference(expectedOutput, [])
288288
}
289-
289+
290290
func testNestedMergeCancellation() {
291291
let effect = Effect<Int, Never>.merge(
292292
(1...2).publisher

0 commit comments

Comments
 (0)