Skip to content

Commit 7631a0d

Browse files
committed
Improve #25.
1 parent cbb9a75 commit 7631a0d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

SwiftState/HierarchicalStateMachine.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public class HierarchicalStateMachine<S: StateType, E: StateEventType>: StateMac
139139

140140
let fromState = self.state
141141
let toState = state
142-
_ = fromState => toState
143142

144143
let (fromSubmachine, _) = self._submachineTupleForState(fromState)
145144
let (toSubmachine, toSubstate) = self._submachineTupleForState(toState)

SwiftState/StateMachine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public class StateMachine<S: StateType, E: StateEventType>
504504
{
505505
var index = handlerInfos.count
506506

507-
for i in Array(Array(0..<handlerInfos.count).reverse()) {
507+
for i in Array(0..<handlerInfos.count).reverse() {
508508
if handlerInfos[i].order <= newHandlerInfo.order {
509509
break
510510
}

0 commit comments

Comments
 (0)