Skip to content

Commit

Permalink
style: return from FlushQueue if skipSendingEvents
Browse files Browse the repository at this point in the history
To improve readability and align with `eventsToSend.isEmpty()` check
  • Loading branch information
wzieba committed Nov 17, 2023
1 parent 269a9d6 commit 409c42d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ internal class FlushQueue(
if (skipSendingEvents) {
ParselyTracker.PLog("Debug mode on. Not sending to Parse.ly. Otherwise, would sent ${eventsToSend.size} events")
repository.remove(eventsToSend)
return@launch
} else {
ParselyTracker.PLog("Sending request with %d events", eventsToSend.size)
val jsonPayload = toParselyEventsPayload(eventsToSend)
Expand Down

0 comments on commit 409c42d

Please sign in to comment.