summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-07-08 22:34:53 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-07-14 14:43:08 +0000
commitfd445690512d8cc2b6016afbffcd2c8af2cc4f47 (patch)
treee6b75a0d2583da1e883baaf4f1ebab67a2179d11 /android/src
parentae2de4780bf07acbdb0b09044172d8cc1f9964de (diff)
downloadmullvadvpn-fd445690512d8cc2b6016afbffcd2c8af2cc4f47.tar.xz
mullvadvpn-fd445690512d8cc2b6016afbffcd2c8af2cc4f47.zip
Remove unnecessary null check
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/InAppNotificationController.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/InAppNotificationController.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/InAppNotificationController.kt
index 3c1a62d925..a67cd7ea45 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/InAppNotificationController.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/InAppNotificationController.kt
@@ -9,7 +9,7 @@ class InAppNotificationController(private val onNotificationChanged: (InAppNotif
private var currentIndex: Int? = null
var current by observable<InAppNotification?>(null) { _, _, notification ->
- onNotificationChanged?.invoke(notification)
+ onNotificationChanged.invoke(notification)
}
fun register(notification: InAppNotification) {