Skip to content

Commit 6553734

Browse files
chrisbobbegnprice
authored andcommitted
android types: Make some params non-nullable in NotificationsModule
The Kotlin auto-conversion had to guess about these, because the distinction doesn't exist in the Java type system.
1 parent c9149f1 commit 6553734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/app/src/main/java/com/zulipmobile/notifications/NotificationsModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import com.google.android.gms.common.ConnectionResult
1010
import com.google.android.gms.common.GoogleApiAvailability
1111
import java.lang.Exception
1212

13-
internal class NotificationsModule(reactContext: ReactApplicationContext?) :
13+
internal class NotificationsModule(reactContext: ReactApplicationContext) :
1414
ReactContextBaseJavaModule(reactContext) {
1515
override fun getName(): String {
1616
return "Notifications"
@@ -76,7 +76,7 @@ internal class NotificationsModule(reactContext: ReactApplicationContext?) :
7676

7777
companion object {
7878
var initialNotification: Bundle? = null
79-
fun emitToken(reactContext: ReactContext?, token: String?) {
79+
fun emitToken(reactContext: ReactContext?, token: String) {
8080
if (reactContext == null) {
8181
// Perhaps this is possible if InstanceIDListenerService gets invoked?
8282
return

0 commit comments

Comments
 (0)