Skip to content

Commit 09cb610

Browse files
committed
replace return to continue in the loop
1 parent e64c747 commit 09cb610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tap/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def get_subsequent_assign_lines(source_cls: str) -> Set[int]:
267267
# Check if the end line number is found
268268
if node.end_lineno is None:
269269
warnings.warn(parse_warning)
270-
return set()
270+
continue
271271

272272
# Get line number of assign statement excluding the first line (and minus 1 for the if statement)
273273
assign_lines |= set(range(node.lineno, node.end_lineno))

0 commit comments

Comments
 (0)