Skip to content

Commit 4266bcd

Browse files
Remove duplicated copyright statement
Signed-off-by: Wonjae Park <[email protected]>
1 parent 8efa9ff commit 4266bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fosslight_source/_parsing_scancode_file_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def parsing_scancode_32_earlier(scancode_file_list: list, has_error: bool = Fals
200200
logger.debug(f"Removing copyright for GPL family license text file: {file_path}")
201201
result_item.copyright = []
202202
else:
203-
result_item.copyright = copyright_value_list
203+
result_item.copyright = list(set(copyright_value_list))
204204

205205
if len(license_expression_list) > 0:
206206
license_expression_list = list(
@@ -315,7 +315,7 @@ def parsing_scancode_32_later(
315315
logger.debug(f"Removing copyright for GPL family license text file: {file_path}")
316316
result_item.copyright = []
317317
else:
318-
result_item.copyright = copyright_value_list
318+
result_item.copyright = list(set(copyright_value_list))
319319

320320
if len(license_detected) > 1:
321321
license_expression_spdx = file.get("detected_license_expression_spdx", "")

0 commit comments

Comments
 (0)