Skip to content

Commit

Permalink
fix: removed unnecessary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-twilio committed Nov 19, 2024
1 parent 2a8ed2d commit 3286a4e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,14 @@ class AnalyticsPlugin : FlutterPlugin, NativeContextApi, EventChannel.StreamHand
}

private fun processPendingDeeplinkEventsQueue() {
if (pendingDeeplinkEventsQueue.isEmpty() ||
this.context == null ||
if (this.context == null ||
changeReceiver == null
) {
return
}
while (pendingDeeplinkEventsQueue.isNotEmpty()) {
val intent = pendingDeeplinkEventsQueue.poll()
changeReceiver?.onReceive(context, intent)
changeReceiver!!.onReceive(context, intent)
}
}

Expand Down

0 comments on commit 3286a4e

Please sign in to comment.