Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Jan 16, 2025
1 parent 5945f33 commit e691068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moler/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def remove_state_hops_from_sm(source_hops: dict, state_to_remove: str, additiona
msg = f"Found cycle from '{old_from_state}' to '{old_dest_state}' via '{source_hops[state_to_remove][old_dest_state]}'. Please verify state hops: {source_hops}"
raise MolerException(msg)
new_via_state = source_hops[old_via_state][old_dest_state]
if forbidden_hops and old_from_state in forbidden_hops and old_dest_state in forbidden_hops[old_from_state] and forbidden_hops[old_from_state][old_dest_state] == new_via_state:
if forbidden_hops and old_from_state in forbidden_hops and old_dest_state in forbidden_hops[old_from_state] and forbidden_hops[old_from_state][old_dest_state] == new_via_state:
if old_from_state in new_hops and old_dest_state in new_hops[old_from_state]:
del new_hops[old_from_state][old_dest_state]
else:
Expand Down

0 comments on commit e691068

Please sign in to comment.