Skip to content

Commit

Permalink
chore: code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Dal Farra committed Jul 11, 2024
1 parent a7b2add commit 961f5ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private static <S, E> void collectCurrentStates(
if (region.getState() != null) {
currentStateAccumulator.add(region.getState().getId());
}

region.getStates().forEach(state -> {
if (state.isSubmachineState()) {
if (state instanceof AbstractState<S, E> abstractState) {
Expand Down Expand Up @@ -93,8 +94,8 @@ private static <S, E> void collectHistoryState(
) {
if (state.getPseudoState() != null
&& (
state.getPseudoState().getKind() == PseudoStateKind.HISTORY_DEEP
|| state.getPseudoState().getKind() == PseudoStateKind.HISTORY_SHALLOW
state.getPseudoState().getKind() == PseudoStateKind.HISTORY_DEEP
|| state.getPseudoState().getKind() == PseudoStateKind.HISTORY_SHALLOW
)
) {
historyStatesToHistoryId.put(state, historyId(parentState, state.getPseudoState().getKind()));
Expand Down

0 comments on commit 961f5ce

Please sign in to comment.