Parcourir la source

Internal code style

Him188 il y a 5 ans
Parent
commit
c6eef9f68e
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt

+ 1 - 3
mirai-core-api/src/commonMain/kotlin/contact/ContactList.kt

@@ -53,9 +53,7 @@ internal fun <C : Any?> ConcurrentLinkedQueue<C>.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 <C : Contact> LockFreeLinkedList<C>.get(id: Long): C {