Skip to content

Commit 14ba0ae

Browse files
committed
code cleanup Signed-off-by: NucleonGodX <[email protected]>
Signed-off-by: NucleonGodX <[email protected]>
1 parent efa154e commit 14ba0ae

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/packagedcode/componentjs.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
class ComponentJSONMetadataHandler(models.NonAssemblableDatafileHandler):
77
"""
8-
Handle JSON metadata files for package analysis.
8+
Handle component JSON metadata files for package analysis.
99
"""
1010
datasource_id = "json_metadata"
1111
path_patterns = ("*component.json",)
1212
default_package_type = "library"
13-
description = "JSON package metadata file"
13+
description = "component JSON package metadata file"
1414

1515
@classmethod
1616
def parse(cls, location, package_only=False):
@@ -110,12 +110,8 @@ def _process_dependencies(data):
110110
@classmethod
111111
def _extract_license_statement(cls, data):
112112
"""
113-
Extract license statement similar to BuildpackHandler.
114-
115-
Handles various license formats:
116-
- Simple string license
117-
- Multiple licenses
118-
- Complex license strings
113+
Extract license statement.
114+
119115
"""
120116
license_field = data.get('license')
121117
if not license_field:
@@ -148,4 +144,4 @@ def _extract_extra_data(data):
148144
field: data[field]
149145
for field in extra_fields
150146
if field in data
151-
}
147+
}

0 commit comments

Comments
 (0)