Skip to content

Commit f92c2ae

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent 0cd0c3e commit f92c2ae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-AlertsAndConfirmationDialogs.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ enum AlertAndConfirmationDialogAction: Equatable {
3737
struct AlertAndConfirmationDialogEnvironment {}
3838

3939
let alertAndConfirmationDialogReducer = Reducer<
40-
AlertAndConfirmationDialogState, AlertAndConfirmationDialogAction, AlertAndConfirmationDialogEnvironment
40+
AlertAndConfirmationDialogState, AlertAndConfirmationDialogAction,
41+
AlertAndConfirmationDialogEnvironment
4142
> { state, action, _ in
4243

4344
switch action {

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import SwiftUI
55
// NB: Deprecated after 0.27.1:
66

77
extension AlertState.Button {
8-
@available(*, deprecated, message: "Cancel buttons must be given an explicit label as their first argument")
8+
@available(
9+
*, deprecated, message: "Cancel buttons must be given an explicit label as their first argument"
10+
)
911
public static func cancel(action: AlertState.ButtonAction? = nil) -> Self {
1012
.init(action: action, label: TextState("Cancel"), role: .cancel)
1113
}

Tests/ComposableArchitectureTests/DebugTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class DebugTests: XCTestCase {
4747
message: .init("Something went wrong..."),
4848
buttons: [
4949
.destructive(.init("Destroy"), action: .send(true, animation: .default)),
50-
.cancel(.init("Cancel"), action: .send(false))
50+
.cancel(.init("Cancel"), action: .send(false)),
5151
]
5252
),
5353
to: &dump

0 commit comments

Comments
 (0)