Commit 2fda4f0
refactor: inline
The `visible = self._scroll_lines[-_MAX_VISIBLE_SCROLL:]` local was
read exactly once as the iterable of the very next `for line in ...`
loop. Collapsing to `for line in self._scroll_lines[-_MAX_VISIBLE_SCROLL:]:`
matches the inline-alias pattern from 497c028 / fc5e1cb / 52e0272 /
ce487d3 / e1ad87a — the slice already documents "the last N scroll
lines" without needing a named intermediate.
Co-authored-by: Ralphify <noreply@ralphify.co>visible alias in _LivePanelBase._build_body
1 parent 1ffe9c2 commit 2fda4f0
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
| 415 | + | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
| |||
0 commit comments