Skip to content

Commit 3a472e9

Browse files
committed
style(android): reformat resolveIpv4Candidates in HostResolver
1 parent 9601abd commit 3a472e9

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

composeApp/src/androidMain/kotlin/it/unibo/collektive/echo/network/mqtt/HostResolver.android.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package it.unibo.collektive.echo.network.mqtt
33
import java.net.Inet4Address
44
import java.net.InetAddress
55

6-
internal actual fun resolveIpv4Candidates(host: String): List<String> =
7-
runCatching {
8-
InetAddress.getAllByName(host)
9-
.filterIsInstance<Inet4Address>()
10-
.mapNotNull { it.hostAddress }
11-
.distinct()
12-
}.getOrElse { emptyList() }
6+
internal actual fun resolveIpv4Candidates(host: String): List<String> = runCatching {
7+
InetAddress.getAllByName(host)
8+
.filterIsInstance<Inet4Address>()
9+
.mapNotNull { it.hostAddress }
10+
.distinct()
11+
}.getOrElse { emptyList() }

0 commit comments

Comments
 (0)