diff options
| author | GeorgeFI | 2023-02-25 14:33:28 +0100 |
|---|---|---|
| committer | GeorgeFI | 2023-02-25 14:33:28 +0100 |
| commit | 00558beaf63befabe723d471efef5ff149874024 (patch) | |
| tree | 1d01e09da18e2575162f0265276d466522e4f477 /src | |
| parent | 81f78accf96b3680a5f97e6475a5d6f8a051ddd0 (diff) | |
| download | sec-certs-00558beaf63befabe723d471efef5ff149874024.tar.gz sec-certs-00558beaf63befabe723d471efef5ff149874024.tar.zst sec-certs-00558beaf63befabe723d471efef5ff149874024.zip | |
refactor: Refactored match function
Diffstat (limited to 'src')
| -rw-r--r-- | src/sec_certs/sample/cpe.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
