Skip to content

Commit b4f9b1c

Browse files
committed
Put back @discardableResult on Store.ifLet (removed during conflict resolution) 🙈
1 parent 43654f4 commit b4f9b1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ extension Store {
4141
/// goes from non-`nil` to `nil`.
4242
/// - Returns: A disposable that maintains a subscription to updates whenever the store's state
4343
/// goes from `nil` to non-`nil` and vice versa, so that the caller can react to these changes.
44+
@discardableResult
4445
public func ifLet<Wrapped>(
4546
then unwrap: @escaping (Store<Wrapped, Action>) -> Void,
4647
else: @escaping () -> Void = {}

0 commit comments

Comments
 (0)