change: `!x.isEmpty()` -> `x.isNotEmpty()`
This commit is contained in:
parent
b0fccb0aa7
commit
3c9dd8655d
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue