Skip to content

Commit 2fcb719

Browse files
Remove unnecessary code
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 87b0b8e commit 2fcb719

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/licensedcode/detection.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,6 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD):
16151615
# This is regardless of line number difference being more than threshold
16161616
if previous_match.rule.is_license_intro:
16171617
group_of_license_matches.append(license_match)
1618-
continue
16191618

16201619
# If the current match is an intro, we should create a new group
16211620
# This is regardless of line number difference being less than threshold
@@ -1629,13 +1628,11 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD):
16291628
yield group_of_license_matches
16301629
yield [license_match]
16311630
group_of_license_matches = []
1632-
continue
16331631

16341632
# If none of previous or current match has license intro then we look at line numbers
16351633
# If line number difference is within threshold, we keep the current match in the group
16361634
elif is_in_group_by_threshold:
16371635
group_of_license_matches.append(license_match)
1638-
continue
16391636

16401637
# If line number difference is outside threshold, we make a new group
16411638
else:

0 commit comments

Comments
 (0)