Skip to content

Commit 926f9dc

Browse files
mbrandonwp4checo
authored andcommitted
Run swift-format
(cherry picked from commit fd9ce8d14e17e6c0b7c285231e689a25fc3b6aa5) # Conflicts: # Sources/ComposableArchitecture/Effect.swift
1 parent 40d4215 commit 926f9dc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Sources/ComposableArchitecture/Effect.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,11 @@ public struct Send<Action> {
388388
/// - action: An action.
389389
/// - transaction: A transaction.
390390
public func callAsFunction(_ action: Action, transaction: Transaction) {
391-
guard !Task.isCancelled else { return }
391+
guard !Task.isCancelled else { return }
392392
withTransaction(transaction) {
393-
self(action)
393+
self(action)
394+
}
394395
}
395-
}
396396
#endif
397397
}
398398

Sources/ComposableArchitecture/Effects/Animation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SwiftUI
1818
public func animation(_ animation: Animation? = .default) -> Self {
1919
self.transaction(Transaction(animation: animation))
2020
}
21-
21+
2222
/// Wraps the emission of each element with SwiftUI's `withTransaction`.
2323
///
2424
/// ```swift

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public final class ViewStore<ViewState, ViewAction> {
308308
public func send(_ action: ViewAction, animation: Animation?) -> ViewStoreTask {
309309
send(action, transaction: Transaction(animation: animation))
310310
}
311-
311+
312312
/// Sends an action to the store with a given transaction.
313313
///
314314
/// See ``ViewStore/send(_:)`` for more info.

0 commit comments

Comments
 (0)