mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Improve readability.
This commit is contained in:
parent
a0025bc99b
commit
e53dd1e1a1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue