Use Generator Expressions Instead of List Comprehensions

This commit is contained in:
pixeebot[bot] 2024-04-14 16:16:32 +00:00 committed by GitHub
parent 216db5d387
commit daca707ad8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,7 +397,7 @@ class ZeekEngine(object):
# This check can be good if the domain has already been cached by # This check can be good if the domain has already been cached by
# the device so it wont appear in self.dns. # the device so it wont appear in self.dns.
if any([cert["cn"].endswith(r["domain"]) for r in self.dns]): if any(cert["cn"].endswith(r["domain"]) for r in self.dns):
continue continue
for domain in self.bl_domains: for domain in self.bl_domains: