Skip to content

Commit

Permalink
Remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Mar 19, 2024
1 parent dce4560 commit 1c4c236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
This list is not intended to be all-encompassing - it will document major and breaking API changes with their rationale
when appropriate:

### v2.15.0.1
- **state4k** : Remove errant system out

### v2.15.0.0
- **all** : Upgrade of dependencies and gradle.
- **state4k** : [Breaking change] Migrated to new construction mechanic. We now define sent commands with `onEnter(commands)` and these are defined on the state itself. This allows for a more consistent way of defining state transitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class StateMachine<StateId, Entity, Event : Any, Command, Error>(
?.let {
(states.firstOrNull { state -> state.id == it.end }
?.onEnter?.let { commands(entity, it) } ?: Success(Unit))
.also { println(it) }
.map { OK(stateLens(transition.applyTo(event, entity), transition.end)) }
} ?: Success(IllegalEvent(entity, event))
}
Expand Down

0 comments on commit 1c4c236

Please sign in to comment.