Skip to content

Commit

Permalink
Improve #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
inamiy committed Jun 12, 2015
1 parent cbb9a75 commit 7631a0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion SwiftState/HierarchicalStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public class HierarchicalStateMachine<S: StateType, E: StateEventType>: StateMac

let fromState = self.state
let toState = state
_ = fromState => toState

let (fromSubmachine, _) = self._submachineTupleForState(fromState)
let (toSubmachine, toSubstate) = self._submachineTupleForState(toState)
Expand Down
2 changes: 1 addition & 1 deletion SwiftState/StateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public class StateMachine<S: StateType, E: StateEventType>
{
var index = handlerInfos.count

for i in Array(Array(0..<handlerInfos.count).reverse()) {
for i in Array(0..<handlerInfos.count).reverse() {
if handlerInfos[i].order <= newHandlerInfo.order {
break
}
Expand Down

0 comments on commit 7631a0d

Please sign in to comment.