Skip to content

Commit 97ea40f

Browse files
committed
address comment
1 parent 9118dea commit 97ea40f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

destination-filters-kotlin/src/main/java/com/segment/analytics/plugins/DestinationFilters.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ class DestinationFilters : Plugin {
7575
cacheInvalidated = true
7676
}
7777

78-
// if engine recreated or rules are different we need to remove and recreated filters
79-
// otherwise, we can skip
78+
// If the engine has NOT been recreated and the cache/rules have not been invalidated then we can exit early.
8079
if (!engineRecreated && !cacheInvalidated) return
8180

8281
metricsPlugin.setOfActiveDestinations.clear()

0 commit comments

Comments
 (0)