From c6eef9f68e9a1ef2bb2363bef78e92b1c1694ae1 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 16 Dec 2020 18:36:56 +0800 Subject: [PATCH] Internal code style --- mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt b/mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt index daa75840b..6f08bcf4d 100644 --- a/mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt +++ b/mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt @@ -53,9 +53,7 @@ internal fun ConcurrentLinkedQueue.addLast(c: C): Boolean = this.a * ``` */ public val ContactList<*>.idContentString: String - get() = "[" + buildString { delegate.forEach { append(it.id).append(", ") } }.dropLast( - 2 - ) + "]" + get() = "[" + delegate.joinToString { it.id.toString() } + "]" internal operator fun LockFreeLinkedList.get(id: Long): C {