assert non nullable

This commit is contained in:
erik-everardo 2024-03-24 21:05:52 -06:00
parent 530d8e7fa2
commit a26adc11f8

View File

@ -46,7 +46,7 @@ class NotificationsViewModel @Inject constructor(private val notificationsReposi
val mutableList = notifications.value?.toMutableList() val mutableList = notifications.value?.toMutableList()
val removed = mutableList?.remove(notification) val removed = mutableList?.remove(notification)
if(mutableList != null && removed == true) { if(mutableList != null && removed == true) {
notifications.postValue(mutableList) notifications.postValue(mutableList!!)
} }
} }