Skip to content

Commit

Permalink
Fix exception about multiple transitions message
Browse files Browse the repository at this point in the history
  • Loading branch information
nsk90 committed Sep 3, 2024
1 parent b025865 commit cabc8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
.gradle/
.kotlin/
out/
build/
*.iml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ open class BaseStateImpl(
.ifEmpty { listOfNotNull(findUniqueResolvedTransition(eventAndArgument)) } // allow transition override
return if (!machine.creationArguments.doNotThrowOnMultipleTransitionsMatch) {
check(resolvedTransitions.size <= 1) {
"Multiple transitions match ${eventAndArgument.event}, $transitions in $this"
"Multiple transitions match ${eventAndArgument.event}, $resolvedTransitions in $this"
}
resolvedTransitions.singleOrNull()
} else {
Expand Down

0 comments on commit cabc8ae

Please sign in to comment.