From daca707ad8717336e18d50415a0aac7c9f0519a8 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Sun, 14 Apr 2024 16:16:32 +0000 Subject: [PATCH] Use Generator Expressions Instead of List Comprehensions --- analysis/classes/zeekengine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/classes/zeekengine.py b/analysis/classes/zeekengine.py index 1aa2338..87ff7a4 100644 --- a/analysis/classes/zeekengine.py +++ b/analysis/classes/zeekengine.py @@ -397,7 +397,7 @@ class ZeekEngine(object): # This check can be good if the domain has already been cached by # 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 for domain in self.bl_domains: