Skip to content

Commit

Permalink
style: make checkstyle happier
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Oct 9, 2023
1 parent 5d1120d commit 3668bfc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private Vulnerability transform(final ComponentReport report, final ComponentRep
result.setDescription(source.getDescription());
result.addCwe(source.getCwe());

final double cvssScore = source.getCvssScore() != null ? source.getCvssScore() : -1;
final double cvssScore = source.getCvssScore() != null ? source.getCvssScore().doubleValue() : -1;

if (source.getCvssVector() != null) {
if (source.getCvssVector().startsWith("CVSS:3")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ private Vulnerability createVulnerability(String parentName, Dependency dependen
.version(version).build();
vulnerability.addVulnerableSoftware(vs);
vulnerability.setMatchedVulnerableSoftware(vs);
final Double score = -1.0;
vulnerability.setUnscoredSeverity("UNKNOWN");
}
LOGGER.debug("bundle-audit ({}): {}", parentName, nextLine);
Expand Down

0 comments on commit 3668bfc

Please sign in to comment.