cve-check: fix return type in check_cves

Message ID 20220603085614.2214637-1-rybczynska@gmail.com
State Accepted, archived
Commit f86393c93dec47b24e837d0c4c5761a716ecdbb6
Headers show
Series cve-check: fix return type in check_cves | expand

Commit Message

Marta Rybczynska June 3, 2022, 8:56 a.m. UTC
Make empty return types in check_cvs the same for all code paths.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
---
 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index c80a365819..c5c22c4c51 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -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