Improve empty list matching

This commit is contained in:
Daniel 2022-02-14 11:25:06 +01:00
parent c2cac45d83
commit c018e2397f

View file

@ -467,6 +467,10 @@ func (e *Entity) LoadLists(ctx context.Context) {
// of source IDs and updates various entity properties // of source IDs and updates various entity properties
// like BlockedByLists, ListOccurences and BlockedEntitites. // like BlockedByLists, ListOccurences and BlockedEntitites.
func (e *Entity) MatchLists(lists []string) bool { func (e *Entity) MatchLists(lists []string) bool {
if len(lists) == 0 {
return false
}
e.BlockedByLists = nil e.BlockedByLists = nil
e.BlockedEntities = nil e.BlockedEntities = nil