This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch previous_sbom_results
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 129c2da44148218ad2a02b90dfb6d80937130efb
Author: Alastair McFarlane <[email protected]>
AuthorDate: Tue Dec 23 14:24:32 2025 +0000

    Don't need keys()
---
 atr/get/sbom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/atr/get/sbom.py b/atr/get/sbom.py
index b76cd68..cac2d72 100644
--- a/atr/get/sbom.py
+++ b/atr/get/sbom.py
@@ -445,7 +445,7 @@ def _vulnerability_component_details_osv(
         worst = min(worst, sev_index)
 
         if previous_vulns is not None:
-            if vuln_id not in previous_vulns.keys() or previous_vulns[vuln_id] 
!= vuln_severity:
+            if vuln_id not in previous_vulns or previous_vulns[vuln_id] != 
vuln_severity:
                 is_new = True
                 new = new + 1
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to