diff options
author | Marta Rybczynska <rybczynska@gmail.com> | 2022-06-03 10:56:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-06 13:35:29 +0100 |
commit | f86393c93dec47b24e837d0c4c5761a716ecdbb6 (patch) | |
tree | 02e24c224708fa9a14abc3b320f0ed18f68ce96c | |
parent | f1b7877acd0f6e3626faa57d9f89809cfcdfd0f1 (diff) | |
download | openembedded-core-contrib-f86393c93dec47b24e837d0c4c5761a716ecdbb6.tar.gz |
cve-check: fix return type in check_cves
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>
-rw-r--r-- | meta/classes/cve-check.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 0c5f40b78d..1b4910f737 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -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 |