Skip to content

Commit

Permalink
Merge pull request #120 from bwhmather/parsing-pylint-fixes
Browse files Browse the repository at this point in the history
Fix pylint warings about unassigned variables
  • Loading branch information
bwhmather authored Nov 4, 2024
2 parents 95d7368 + 2fb0983 commit f89be62
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ssort/_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ def split(

next_node = next(nodes, None)

if next_node is not None:
next_start_row, next_start_col = _find_start(next_node)
next_end_row, next_end_col = _find_end(next_node)
if next_node is None:
return

indent_text = " " * next_node.col_offset
next_indent_text = ""
next_start_row, next_start_col = _find_start(next_node)
next_end_row, next_end_col = _find_end(next_node)

indent_text = " " * next_node.col_offset
next_indent_text = ""

while next_node:
this_node, next_node = next_node, next(nodes, None)
Expand Down

0 comments on commit f89be62

Please sign in to comment.