change: `!x.isEmpty()` -> `x.isNotEmpty()`

This commit is contained in:
Nik Clayton 2024-04-30 16:11:44 +02:00
parent b0fccb0aa7
commit 3c9dd8655d
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ open class Extractor {
// Two entities overlap only when one is URL and the other is hashtag/mention
// which is a part of the URL. When it happens, we choose URL over hashtag/mention
// by selecting the one with smaller start index.
if (!entities.isEmpty()) {
if (entities.isNotEmpty()) {
val it = entities.iterator()
var prev = it.next()
while (it.hasNext()) {