assert non nullable
This commit is contained in:
parent
530d8e7fa2
commit
a26adc11f8
@ -46,7 +46,7 @@ class NotificationsViewModel @Inject constructor(private val notificationsReposi
|
||||
val mutableList = notifications.value?.toMutableList()
|
||||
val removed = mutableList?.remove(notification)
|
||||
if(mutableList != null && removed == true) {
|
||||
notifications.postValue(mutableList)
|
||||
notifications.postValue(mutableList!!)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user