Skip to content

Commit 2a3729e

Browse files
authored
fix: Enable binding workaround in release builds
1 parent c4d0d2f commit 2a3729e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/ComposableArchitecture/Core.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,9 @@ final class IfLetCore<Base: Core, State, Action>: Core {
268268
@inlinable
269269
@inline(__always)
270270
func send(_ action: Action) -> Task<Void, Never>? {
271-
#if DEBUG
272-
if BindingLocal.isActive && isInvalid {
273-
return nil
274-
}
275-
#endif
271+
if BindingLocal.isActive && isInvalid {
272+
return nil
273+
}
276274
return base.send(actionKeyPath(action))
277275
}
278276
@inlinable

0 commit comments

Comments
 (0)