1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-02 05:00:35 +08:00

Use String.repeat instead of SB

This commit is contained in:
Him188 2019-10-02 20:55:17 +08:00
parent 034e25d7da
commit 56f1c9a6f3

View File

@ -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
}
}