Skip to content

Commit 2298702

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 28ba78c commit 2298702

File tree

7 files changed

+24
-25
lines changed

7 files changed

+24
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ComposableArchitecture
22

33
struct CounterFeature: ReducerProtocol {
4-
4+
55
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/01-02-code-0004-previous.swift

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ struct CounterView: View {
22
let store: StoreOf<CounterFeature>
33

44
var body: some View {
5-
VStack {
6-
Text("0")
7-
.font(.largeTitle)
8-
.padding()
9-
.background(Color.black.opacity(0.1))
10-
.cornerRadius(10)
11-
HStack {
12-
Button("-") {
13-
}
14-
.font(.largeTitle)
15-
.padding()
16-
.background(Color.black.opacity(0.1))
17-
.cornerRadius(10)
5+
VStack {
6+
Text("0")
7+
.font(.largeTitle)
8+
.padding()
9+
.background(Color.black.opacity(0.1))
10+
.cornerRadius(10)
11+
HStack {
12+
Button("-") {
13+
}
14+
.font(.largeTitle)
15+
.padding()
16+
.background(Color.black.opacity(0.1))
17+
.cornerRadius(10)
1818

19-
Button("+") {
20-
}
21-
.font(.largeTitle)
22-
.padding()
23-
.background(Color.black.opacity(0.1))
24-
.cornerRadius(10)
19+
Button("+") {
2520
}
21+
.font(.largeTitle)
22+
.padding()
23+
.background(Color.black.opacity(0.1))
24+
.cornerRadius(10)
2625
}
26+
}
2727
}
2828
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/02-01-code-0005.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct CounterFeature: ReducerProtocol {
2828
.data(from: URL(string: "http://numbersapi.com/\(state.count)")!)
2929
// 🛑 'async' call in a function that does not support concurrency
3030
// 🛑 Errors thrown from here are not handled
31-
31+
3232
state.fact = String(decoding: data, as: UTF8.self)
3333
state.isLoading = false
3434

Sources/ComposableArchitecture/Documentation.docc/Tutorials/03-01-code-0001.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import XCTest
44
@MainActor
55
final class CounterFeatureTests: XCTestCase {
66
func testCounter() async {
7-
7+
88
}
99
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
import ComposableArchitecture
2-

Sources/ComposableArchitecture/Effect.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ extension EffectPublisher where Failure == Never {
163163
try await operation(send)
164164
} catch is CancellationError {
165165
return
166-
} catch {
166+
} catch {
167167
guard let handler = handler else {
168168
#if DEBUG
169169
var errorDump = ""

Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extension ReducerProtocol {
99
/// - Returns: A reducer that prints debug messages for all received actions.
1010
@inlinable
1111
@warn_unqualified_access
12-
@_documentation(visibility: public)
12+
@_documentation(visibility:public)
1313
public func _printChanges(
1414
_ printer: _ReducerPrinter<State, Action>? = .customDump
1515
) -> _PrintChangesReducer<Self> {

0 commit comments

Comments
 (0)