Skip to content

Commit

Permalink
fix: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Nov 26, 2023
1 parent 5a22804 commit 1fa42dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib4sbom/cyclonedx/cyclonedx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def parse_cyclonedx_json(self, sbom_file):
vuln_info.set_value("status", vuln["analysis"]["state"])
vuln_info.set_comment(vuln["analysis"]["detail"])
if "justification" in vuln["analysis"]:
vuln_info.set_value("justification", vuln["analysis"]["justification"] )
vuln_info.set_value(
"justification", vuln["analysis"]["justification"]
)
vulnerabilities.append(vuln_info.get_vulnerability())
if self.debug:
print(vulnerabilities)
Expand Down
4 changes: 2 additions & 2 deletions lib4sbom/spdx/spdx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def parse_spdx_tag(self, sbom_file):
files,
packages,
self._transform_relationship(relationships, elements),
self.vulnerabilities
self.vulnerabilities,
)

def parse_spdx_json(self, sbom_file):
Expand Down Expand Up @@ -441,7 +441,7 @@ def _parse_spdx_data(self, data):
files,
packages,
self._transform_relationship(relationships, elements),
self.vulnerabilities
self.vulnerabilities,
)

def parse_spdx_yaml(self, sbom_file):
Expand Down

0 comments on commit 1fa42dc

Please sign in to comment.