Skip to content

Commit 566ba1e

Browse files
chore: fix typo in comment (#20210)
Title says it all
1 parent 6986993 commit 566ba1e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypyc/transform/flag_elimination.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ def __init__(self, builder: LowLevelIRBuilder, branch_map: dict[Register, Branch
7878
self.branches = set(branch_map.values())
7979

8080
def visit_assign(self, op: Assign) -> None:
81-
old_branch = self.branch_map.get(op.dest)
82-
if old_branch:
81+
if old_branch := self.branch_map.get(op.dest):
8382
# Replace assignment with a copy of the old branch, which is in a
84-
# separate basic block. The old branch will be deletecd in visit_branch.
83+
# separate basic block. The old branch will be deleted in visit_branch.
8584
new_branch = Branch(
8685
op.src,
8786
old_branch.true,

0 commit comments

Comments
 (0)