From 00558beaf63befabe723d471efef5ff149874024 Mon Sep 17 00:00:00 2001 From: GeorgeFI Date: Sat, 25 Feb 2023 14:33:28 +0100 Subject: refactor: Refactored match function --- src/sec_certs/sample/cpe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sec_certs/sample/cpe.py b/src/sec_certs/sample/cpe.py index 64b80b5b..664e70e3 100644 --- a/src/sec_certs/sample/cpe.py +++ b/src/sec_certs/sample/cpe.py @@ -32,7 +32,7 @@ class CPEConfiguration(ComplexSerializableType): For a given set of CPEs method returns boolean if the CPE configuration is matched or not. """ - return self.platform in set_of_cpes and any([cpe for cpe in set_of_cpes]) + return self.platform in set_of_cpes and any(list(set_of_cpes)) @dataclass(init=False) -- cgit v1.3.1