Skip to content

Commit 25c02b5

Browse files
committed
Fix code format
Signed-off-by: tdruez <[email protected]>
1 parent 3752d1e commit 25c02b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

scanpipe/pipes/spdx.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ class ExternalRef:
251251

252252
def as_dict(self, spec_version=SPDX_SPEC_VERSION_2_3):
253253
"""Return the data as a serializable dict."""
254-
255254
if spec_version == SPDX_SPEC_VERSION_2_2:
256255
if self.category == "PACKAGE-MANAGER":
257256
self.category = "PACKAGE_MANAGER"
@@ -394,12 +393,14 @@ def as_dict(self, spec_version=SPDX_SPEC_VERSION_2_3):
394393

395394
# Fields only valid in 2.3
396395
if spec_version == SPDX_SPEC_VERSION_2_3:
397-
optional_data.update({
398-
"releaseDate": self.date_to_iso(self.release_date),
399-
"builtDate": self.date_to_iso(self.built_date),
400-
"validUntilDate": self.date_to_iso(self.valid_until_date),
401-
"primaryPackagePurpose": self.primary_package_purpose,
402-
})
396+
optional_data.update(
397+
{
398+
"releaseDate": self.date_to_iso(self.release_date),
399+
"builtDate": self.date_to_iso(self.built_date),
400+
"validUntilDate": self.date_to_iso(self.valid_until_date),
401+
"primaryPackagePurpose": self.primary_package_purpose,
402+
}
403+
)
403404

404405
optional_data = {key: value for key, value in optional_data.items() if value}
405406
return {**required_data, **optional_data}

0 commit comments

Comments
 (0)