Skip to content

Commit

Permalink
Shortened if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhartmann committed Nov 16, 2023
1 parent a7f4d76 commit 55ead2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,5 @@ def _substract_continuation_from_last_definition(code_node: CodeNode, continuati
last_definition.substitute(
last_definition.value, BinaryOperation(OperationType.minus, [last_definition.value, continuation.instruction.value.right])
)
if _count_unaryoperations_negations(continuation.instruction.value.left) % 2 != 0:
if _count_unaryoperations_negations(continuation.instruction.value.left) % 2:
last_definition.substitute(last_definition.value, UnaryOperation(OperationType.negate, [last_definition.value]))

0 comments on commit 55ead2e

Please sign in to comment.