Skip to content

Commit a09d98b

Browse files
authored
Only process match results for file matches (#1658)
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 77988dc commit a09d98b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scanpipe/pipes/matchcode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def create_packages_from_match_results(project, match_results):
408408
)
409409
match_resources = match_results.get("files", [])
410410
for match_resource in match_resources:
411+
if match_resource["type"] != "file":
412+
continue
411413
match_resource_extra_data = match_resource["extra_data"]
412414
if match_resource_extra_data:
413415
resource = project.codebaseresources.get(path=match_resource["path"])

0 commit comments

Comments
 (0)