]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cve-check: fix return type in check_cves
authorMarta Rybczynska <rybczynska@gmail.com>
Fri, 3 Jun 2022 08:56:14 +0000 (10:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jun 2022 12:35:29 +0000 (13:35 +0100)
Make empty return types in check_cvs the same for all code paths.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass

index 0c5f40b78dd16413696959dff3219b062b9564ed..1b4910f737468384f701ee40eecc4ba9e634b37b 100644 (file)
@@ -264,7 +264,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