Skip to content

Commit b921c85

Browse files
committed
Remove unnecessary eventQueue.clear() call; the queue can only ever be empty at this point.
1 parent 1a6b78e commit b921c85

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/src/main/java/com/segment/analytics/kotlin/destinations/consent/ConsentManager.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,5 @@ class ConsentManager(
174174
while (queuedEvents.isNotEmpty()) {
175175
queuedEvents.poll()?.let { analytics.process(it) }
176176
}
177-
178-
queuedEvents.clear()
179177
}
180178
}

0 commit comments

Comments
 (0)