Skip to content

Commit

Permalink
superfluous
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 25, 2024
1 parent 8e581cf commit 492d823
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/textual/widgets/_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,6 @@ def move_cursor_to_line(self, line: int, animate=False) -> None:
Raises:
IndexError: If the line doesn't exist.
"""
if line < 0:
line = len(self._tree_lines) + line
try:
node = self._tree_lines[line].node
except IndexError:
Expand Down

0 comments on commit 492d823

Please sign in to comment.