Skip to content

Commit c4f939d

Browse files
committed
Remove generics
1 parent 1cdb955 commit c4f939d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/lib/talpid/src/main/kotlin/net/mullvad/talpid/util/UnderlyingConnectivityStatusResolver.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class UnderlyingConnectivityStatusResolver(
2828
// if the VPN is turned on or not.
2929
// If the ip version is not supported on the underlying network it will trigger a socket
3030
// exception. Otherwise we assume it is available.
31-
private inline fun <reified T : InetAddress> hasIpVersion(
32-
ip: T,
31+
private fun hasIpVersion(
32+
ip: InetAddress,
3333
protect: (socket: DatagramSocket) -> Boolean,
3434
): Boolean {
3535
val socket = DatagramSocket()

0 commit comments

Comments
 (0)