Skip to content

Commit c62147d

Browse files
committed
Removed redundant try-finally
1 parent 8860575 commit c62147d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

mypy/checkexpr.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,15 +2807,9 @@ def check_boolean_op(self, e: OpExpr, context: Context) -> Type:
28072807

28082808
if right_map is None:
28092809
with self.msg.disable_errors():
2810-
try:
2811-
right_type = self.analyze_cond_branch(right_map, e.right, left_type)
2812-
finally:
2813-
pass
2810+
right_type = self.analyze_cond_branch(right_map, e.right, left_type)
28142811
else:
2815-
try:
2816-
right_type = self.analyze_cond_branch(right_map, e.right, left_type)
2817-
finally:
2818-
pass
2812+
right_type = self.analyze_cond_branch(right_map, e.right, left_type)
28192813

28202814
if right_map is None:
28212815
# The boolean expression is statically known to be the left value

0 commit comments

Comments
 (0)