Skip to content

Commit

Permalink
Cut add double clause
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Sep 7, 2023
1 parent c0ba240 commit cf5a0ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tm/num.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ def __add__(self, other: Count) -> Count:
if isinstance(other, int):
return self if other == 0 else Add(other, self)

if other == self:
return 2 * self

if isinstance(other, Add):
if isinstance(other.l, int):
return other.l + (self + other.r)
Expand Down

0 comments on commit cf5a0ce

Please sign in to comment.