mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 05:34:42 +08:00
Internal code style
This commit is contained in:
parent
fefadad3f4
commit
c6eef9f68e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user