Improve readability.

This commit is contained in:
Benoit Marty 2022-06-30 14:50:20 +02:00
parent a0025bc99b
commit e53dd1e1a1

View file

@ -39,7 +39,7 @@ internal fun <T> RealmList<T>.clearWith(delete: (T) -> Unit) {
lambda.invoke() lambda.invoke()
} }
if (!isEmpty()) { if (isNotEmpty()) {
fatalError("`clearWith` MUST delete all elements of the RealmList") fatalError("`clearWith` MUST delete all elements of the RealmList")
} }
} }