Skip to content

Commit

Permalink
Simplify logic - thanks ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Nov 17, 2023
1 parent 0b116d5 commit 1382cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ def _replacement(self, t: Tree) -> None:
t.children[0].value = float(t.children[0].value)
except AttributeError:
negative_param = (
True if t.value[0] == "-" else False
t.value[0] == "-"
) # account for uncommon cases such as "MODEL_NAME ... -DEFINE_NAME"
value = t.value if not negative_param else t.value[1:]
if value in self.define_defs:
Expand Down

0 comments on commit 1382cf7

Please sign in to comment.