Skip to content

Commit

Permalink
after review
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 21, 2024
1 parent ad93857 commit 611ed7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moler/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ def remove_state_from_sm(source_sm: dict, source_transitions: dict, state_to_rem
],
}

del_state_to_remove(sm=new_sm, state_to_remove=state_to_remove)
del_state_to_remove(sm=new_transitions, state_to_remove=state_to_remove)
_delete_state(sm=new_sm, state_to_remove=state_to_remove)
_delete_state(sm=new_transitions, state_to_remove=state_to_remove)

return (new_sm, new_transitions)


def del_state_to_remove(sm: dict, state_to_remove: str) -> None:
def _delete_state(sm: dict, state_to_remove: str) -> None:
"""
Delete state from a state machine dict (in place).
:param sm: dict with state machine
Expand Down

0 comments on commit 611ed7e

Please sign in to comment.