Skip to content

Commit

Permalink
added filter in internal rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-privado committed Aug 22, 2024
1 parent b09a572 commit 8105dce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/ai/privado/entrypoint/DynamicRuleMerger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ trait DynamicRuleMerger {
try {

val internalRuleMap = mutable.Map(
internalSinkRules.map(rule => ((rule.domains.headOption.get, rule.name, rule.filterProperty), rule))*
internalSinkRules
.filter(rule => rule.domains.nonEmpty && rule.name.nonEmpty)
.map(rule => ((rule.domains.headOption.get, rule.name, rule.filterProperty), rule)): _*
)

externalSinkRules.foreach { externalRule =>
Expand Down

0 comments on commit 8105dce

Please sign in to comment.