Skip to content

Commit 1509a08

Browse files
committed
Make docstring sentence clearer what the intent is by matching ID and aliases per review
1 parent 27937f8 commit 1509a08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

exasol/toolbox/util/dependencies/track_vulnerabilities.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ def _is_resolved(self, previous_vuln: Vulnerability):
1919
A vulnerability is said to be resolved when it cannot be found
2020
in the `current_vulnerabilities`. In order to see if a vulnerability
2121
is still present, its id and aliases are compared to values in the
22-
`current_vulnerabilities`. While one could hope that the IDs
23-
are the same, it's possible between pip-audit versions that
24-
there are differences.
22+
`current_vulnerabilities`. It is hoped that if an ID were to change
23+
that this would still be present in the aliases.
2524
"""
2625
previous_vuln_set = {previous_vuln.id, *previous_vuln.aliases}
2726
for current_vuln in self.current_vulnerabilities:

0 commit comments

Comments
 (0)