Skip to content

Commit 2cb9f32

Browse files
committed
Lints files
1 parent da9c233 commit 2cb9f32

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/statifier/interpreter.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ defmodule Statifier.Interpreter do
8484
defp initialize_state_chart(optimized_document, warnings, opts) do
8585
initial_config = get_initial_configuration(optimized_document)
8686

87+
initial_leaf_states =
88+
initial_config
89+
|> Configuration.active_leaf_states()
90+
|> MapSet.to_list()
91+
8792
state_chart = StateChart.new(optimized_document, initial_config)
8893

8994
# Initialize data model from datamodel_elements
@@ -95,7 +100,7 @@ defmodule Statifier.Interpreter do
95100
# Configure logging based on options or defaults
96101
|> LogManager.configure_from_options(opts)
97102
# Execute onentry actions for initial leaf states and queue any raised events
98-
|> ActionExecutor.execute_onentry_actions(MapSet.to_list(Configuration.active_leaf_states(initial_config)))
103+
|> ActionExecutor.execute_onentry_actions(initial_leaf_states)
99104
# Execute microsteps (eventless transitions and internal events) after initialization
100105
|> execute_microsteps()
101106

@@ -113,7 +118,6 @@ defmodule Statifier.Interpreter do
113118
{:ok, state_chart}
114119
end
115120

116-
117121
@doc """
118122
Send an event to the state chart and return the new state (macrostep execution).
119123

0 commit comments

Comments
 (0)