[O] remove unnecessary toString

This commit is contained in:
Azalea
2024-12-26 07:24:52 -05:00
parent 0411505341
commit 89424f6466

View File

@@ -175,7 +175,7 @@ class AllNet(
private fun switchUri(localAddr: Str, localPort: Str, gameId: Str, ver: Str, session: Str?): Str {
val addr = props.host.ifBlank { localAddr } +
if (props.hidePort) "" else ":${props.port?.toString() ?: localPort}"
if (props.hidePort) "" else ":${props.port ?: localPort}"
// If keychip authentication is enabled, the game URLs will be set to /gs/{token}/{game}/...
val base = if (session != null) "gs/$session" else "g"