File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -1615,7 +1615,6 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD):
1615
1615
# This is regardless of line number difference being more than threshold
1616
1616
if previous_match .rule .is_license_intro :
1617
1617
group_of_license_matches .append (license_match )
1618
- continue
1619
1618
1620
1619
# If the current match is an intro, we should create a new group
1621
1620
# This is regardless of line number difference being less than threshold
@@ -1629,13 +1628,11 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD):
1629
1628
yield group_of_license_matches
1630
1629
yield [license_match ]
1631
1630
group_of_license_matches = []
1632
- continue
1633
1631
1634
1632
# If none of previous or current match has license intro then we look at line numbers
1635
1633
# If line number difference is within threshold, we keep the current match in the group
1636
1634
elif is_in_group_by_threshold :
1637
1635
group_of_license_matches .append (license_match )
1638
- continue
1639
1636
1640
1637
# If line number difference is outside threshold, we make a new group
1641
1638
else :
You can’t perform that action at this time.
0 commit comments