From c018e2397faf33e5a8368ec4c2bc26f6a50f3a32 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 14 Feb 2022 11:25:06 +0100 Subject: [PATCH] Improve empty list matching --- intel/entity.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intel/entity.go b/intel/entity.go index 53f803fc..19596255 100644 --- a/intel/entity.go +++ b/intel/entity.go @@ -467,6 +467,10 @@ func (e *Entity) LoadLists(ctx context.Context) { // of source IDs and updates various entity properties // like BlockedByLists, ListOccurences and BlockedEntitites. func (e *Entity) MatchLists(lists []string) bool { + if len(lists) == 0 { + return false + } + e.BlockedByLists = nil e.BlockedEntities = nil