Skip to content

Commit

Permalink
fixup black formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzarquon committed Mar 8, 2022
1 parent 4641508 commit 1df9329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion snyk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ def _aggregated_issue_to_vulnerabily(

try:
upgradable_paths = filter(
lambda path: path[0].fixVersion is not None, issue_paths.paths,
lambda path: path[0].fixVersion is not None,
issue_paths.paths,
)
first_path = next(upgradable_paths)
upgrade_path = list(map(format_package, first_path))
Expand Down
5 changes: 4 additions & 1 deletion snyk/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,10 @@ def test_vulnerabilities(self, project, project_url, requests_mock):
"snapshotId": "bb00717d-4618-4ceb-bebd-ec268a563e98",
"paths": [
[
{"name": "tap", "version": "11.1.5",},
{
"name": "tap",
"version": "11.1.5",
},
{"name": "nyc", "version": "11.9.0"},
{"name": "istanbul-lib-instrument", "version": "1.10.1"},
{"name": "babel-traverse", "version": "6.26.0"},
Expand Down

0 comments on commit 1df9329

Please sign in to comment.