Skip to content

Commit 9f3f847

Browse files
Remove guard assertions from abstract Flow (#441)
1 parent b1f3720 commit 9f3f847

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Sources/Nodes/Classes/AbstractFlow.swift

-10
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ open class AbstractFlow<ContextInterfaceType, ViewControllerType>: Flow {
169169
///
170170
/// - Parameter subFlow: The `Flow` instance to attach and start.
171171
public final func attach(starting subFlow: Flow) {
172-
guard isStarted
173-
else {
174-
assertionFailure("Unable to attach")
175-
return
176-
}
177172
#if DEBUG
178173
DebugInformation.FlowWillAttachNotification(flow: self, subFlow: subFlow).post()
179174
#endif
@@ -186,11 +181,6 @@ open class AbstractFlow<ContextInterfaceType, ViewControllerType>: Flow {
186181
///
187182
/// - Parameter subFlow: The `Flow` instance to end and detach.
188183
public final func detach(ending subFlow: Flow) {
189-
guard isStarted
190-
else {
191-
assertionFailure("Unable to detach")
192-
return
193-
}
194184
flowController.detach(ending: subFlow)
195185
#if DEBUG
196186
DebugInformation.FlowDidDetachNotification(flow: self, subFlow: subFlow).post()

0 commit comments

Comments
 (0)