mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-30 09:50:12 +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
|
public val ContactList<*>.idContentString: String
|
||||||
get() = "[" + buildString { delegate.forEach { append(it.id).append(", ") } }.dropLast(
|
get() = "[" + delegate.joinToString { it.id.toString() } + "]"
|
||||||
2
|
|
||||||
) + "]"
|
|
||||||
|
|
||||||
|
|
||||||
internal operator fun <C : Contact> LockFreeLinkedList<C>.get(id: Long): C {
|
internal operator fun <C : Contact> LockFreeLinkedList<C>.get(id: Long): C {
|
||||||
|
Loading…
Reference in New Issue
Block a user