From 3c9dd8655dd7a3717d4a3db8c6b932b948e3df9c Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 30 Apr 2024 16:11:44 +0200 Subject: [PATCH] change: `!x.isEmpty()` -> `x.isNotEmpty()` --- core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt b/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt index ba5878c04..70db0e907 100644 --- a/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt +++ b/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt @@ -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()) {