Skip to content

Commit b0af6d5

Browse files
mluisbrownactions-user
authored andcommitted
Run swift-format
1 parent c1d58d9 commit b0af6d5

File tree

3 files changed

+48
-45
lines changed

3 files changed

+48
-45
lines changed
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
#if DEBUG
2-
import Foundation
3-
import ReactiveSwift
4-
import XCTestDynamicOverlay
2+
import Foundation
3+
import ReactiveSwift
4+
import XCTestDynamicOverlay
55

6-
public final class FailingScheduler: DateScheduler {
7-
public init() {}
6+
public final class FailingScheduler: DateScheduler {
7+
public init() {}
88

9-
public var currentDate: Date {
10-
XCTFail(
11-
"""
12-
A failing scheduler was asked the current time.
13-
"""
14-
)
15-
return Date()
16-
}
9+
public var currentDate: Date {
10+
XCTFail(
11+
"""
12+
A failing scheduler was asked the current time.
13+
"""
14+
)
15+
return Date()
16+
}
1717

18-
public func schedule(after date: Date, action: @escaping () -> Void) -> Disposable? {
19-
XCTFail(
20-
"""
21-
A failing scheduler scheduled an action to run later.
22-
"""
23-
)
24-
return nil
25-
}
18+
public func schedule(after date: Date, action: @escaping () -> Void) -> Disposable? {
19+
XCTFail(
20+
"""
21+
A failing scheduler scheduled an action to run later.
22+
"""
23+
)
24+
return nil
25+
}
2626

27-
public func schedule(
28-
after date: Date, interval: DispatchTimeInterval, leeway: DispatchTimeInterval,
29-
action: @escaping () -> Void
30-
) -> Disposable? {
31-
XCTFail(
32-
"""
33-
A failing scheduler scheduled an action to run later.
34-
"""
35-
)
36-
return nil
37-
}
27+
public func schedule(
28+
after date: Date, interval: DispatchTimeInterval, leeway: DispatchTimeInterval,
29+
action: @escaping () -> Void
30+
) -> Disposable? {
31+
XCTFail(
32+
"""
33+
A failing scheduler scheduled an action to run later.
34+
"""
35+
)
36+
return nil
37+
}
3838

39-
public func schedule(_ action: @escaping () -> Void) -> Disposable? {
40-
XCTFail(
41-
"""
42-
A failing scheduler scheduled an action to run immediately.
43-
"""
44-
)
39+
public func schedule(_ action: @escaping () -> Void) -> Disposable? {
40+
XCTFail(
41+
"""
42+
A failing scheduler scheduled an action to run immediately.
43+
"""
44+
)
4545

46-
return nil
46+
return nil
47+
}
4748
}
48-
}
4949
#endif

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ public struct StoreProducer<State>: SignalProducerConvertible {
297297

298298
fileprivate init<Action>(viewStore: ViewStore<State, Action>) {
299299
self.viewStore = viewStore
300-
self.upstream = Property<State>(initial: viewStore.state, then: viewStore.statePipe.output).producer
300+
self.upstream =
301+
Property<State>(initial: viewStore.state, then: viewStore.statePipe.output).producer
301302
}
302303

303304
private init(

Tests/ComposableArchitectureTests/StoreTests.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,11 @@ final class StoreTests: XCTestCase {
514514
XCTAssertEqual(handledActions, [])
515515

516516
parentStore.send(.button)
517-
XCTAssertEqual(handledActions, [
518-
.button,
519-
.child(2)
520-
])
517+
XCTAssertEqual(
518+
handledActions,
519+
[
520+
.button,
521+
.child(2),
522+
])
521523
}
522524
}

0 commit comments

Comments
 (0)