Improve empty list matching
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user