Skip to content

Commit 06c9a04

Browse files
authored
Remove duplicates from matched file
2 parents 3fc34a8 + dc05e02 commit 06c9a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fosslight_source/_license_matched.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def set_license(self, value):
3131
self.license = value
3232

3333
def set_files(self, value):
34-
self.files.append(value)
34+
if value not in self.files:
35+
self.files.append(value)
3536

3637
def set_category(self, value):
3738
self.category = value

0 commit comments

Comments
 (0)