Skip to content

Commit

Permalink
Use variable to avoid duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Sep 9, 2024
1 parent a2c07d8 commit 33235a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bout_v6_coordinates_upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def replacement_for_division_assignment(match):

return {
# Replace `->{var} =` with `->setVar()`, etc
fr"({arrow_or_dot})({var})\s?\=\s?(.+)(?=;)":
fr"({arrow_or_dot})({var})\s?{equals_something}":
replacement_for_assignment,

# Replace `foo->var /= bar` with `foo->setVar(foo->var() / (bar))`
Expand Down

0 comments on commit 33235a2

Please sign in to comment.