Skip to content

Commit 7e373ef

Browse files
chrisbobbegnprice
authored andcommitted
android [nfc]: Simplify making a list using Kotlin's listOf
1 parent 904c260 commit 7e373ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class NotificationsPackage : ReactPackage {
1212
}
1313

1414
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
15-
val modules: MutableList<NativeModule> = ArrayList()
16-
modules.add(NotificationsModule(reactContext))
17-
return modules
15+
return listOf(NotificationsModule(reactContext))
1816
}
1917
}

0 commit comments

Comments
 (0)