mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 23:20:09 +08:00
Use String.repeat instead of SB
This commit is contained in:
parent
034e25d7da
commit
56f1c9a6f3
@ -17,10 +17,6 @@ internal object PacketNameFormatter {
|
||||
return name
|
||||
}
|
||||
|
||||
return StringBuilder().apply {
|
||||
repeat(longestNameLength - name.length) {
|
||||
this.append(" ")
|
||||
}
|
||||
}.toString() + name
|
||||
return " ".repeat(longestNameLength - name.length) + name
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user