Skip to contentSkip to conversation

cve-check: fix return type in check_cves

PATCH New Marta Rybczynska 1 participant 1 message Jun 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cve-check: fix return type in check_cves

Make empty return types in check_cvs the same for all code paths.

---
 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cve-check.bbclass +1 -1
index c80a365819..c5c22c4c51 100644
@@ -269,7 +269,7 @@ def check_cves(d, patched_cves):
     products = d.getVar("CVE_PRODUCT").split()
     # If this has been unset then we're not scanning for CVEs here (for example, image recipes)
     if not products:
-        return ([], [], [], {})
+        return ([], [], [], [])
     pv = d.getVar("CVE_VERSION").split("+git")[0]
 
     # If the recipe has been skipped/ignored we return empty lists
Signature · 1 line
2.33.0