Skip to content

Commit

Permalink
[skip ci] do not print "Non-Vulnerable Dependencies" header when runn…
Browse files Browse the repository at this point in the history
…ing in quiet mode
  • Loading branch information
bhamail committed Dec 9, 2020
1 parent 87d5019 commit 3d95ba9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions jake/audit/audit.py
Expand Up @@ -45,13 +45,13 @@ def audit_results(self, results: List[CoordinateResults]):
good = [x for x in results if len(x.get_vulnerabilities()) == 0]
bad = [x for x in results if len(x.get_vulnerabilities()) > 0]

if len(good) != 0:
print()
print("Non-Vulnerable Dependencies")
print()
for coordinate in good:
pkg_num += 1
total_vulns += self.print_result(coordinate, pkg_num, len(results))
if (len(good) != 0 and not self._quiet):
print()
print("Non-Vulnerable Dependencies")
print()
for coordinate in good:
pkg_num += 1
total_vulns += self.print_result(coordinate, pkg_num, len(results))

if len(bad) != 0:
print()
Expand Down

0 comments on commit 3d95ba9

Please sign in to comment.