mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-03 22:13:54 +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 name
|
||||||
}
|
}
|
||||||
|
|
||||||
return StringBuilder().apply {
|
return " ".repeat(longestNameLength - name.length) + name
|
||||||
repeat(longestNameLength - name.length) {
|
|
||||||
this.append(" ")
|
|
||||||
}
|
|
||||||
}.toString() + name
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user