Skip to content

Commit

Permalink
no need for None condition
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jun 28, 2020
1 parent 7c02ddc commit 5e8673d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __rich_console__(
get_safe_box(self.box, console.legacy_windows)
if self.safe_box
else self.box
) or SQUARE
)
line_start = Segment(box.mid_left, style)
line_end = Segment(f"{box.mid_right}\n", style)
yield Segment(box.get_top([width - 2]), style)
Expand Down

0 comments on commit 5e8673d

Please sign in to comment.