mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Improve readability.
This commit is contained in:
parent
a0025bc99b
commit
e53dd1e1a1
@ -39,7 +39,7 @@ internal fun <T> RealmList<T>.clearWith(delete: (T) -> Unit) {
|
||||
lambda.invoke()
|
||||
}
|
||||
|
||||
if (!isEmpty()) {
|
||||
if (isNotEmpty()) {
|
||||
fatalError("`clearWith` MUST delete all elements of the RealmList")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user