Skip to content

Commit

Permalink
Make unhandled() default for entering state
Browse files Browse the repository at this point in the history
  • Loading branch information
bladh committed Sep 28, 2021
1 parent 337112b commit 1700755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/tjur/simplestatemachine/State.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract class State {
* @param message If this state was transitioned to accompanied by a message
* @return A MessageResult that may contain a TransitionMesage, but is otherwise ignored.
*/
open fun enter(message: Message? = null) = handled()
open fun enter(message: Message? = null) = unhandled()

/**
* Called when this state is transitioned out of.
Expand Down

0 comments on commit 1700755

Please sign in to comment.