Refine code style

This commit is contained in:
Mygod
2020-05-30 22:20:30 -04:00
parent cbef64ae55
commit 4f4f4ff338
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ data class IpNeighbour(val ip: InetAddress, val dev: String, val lladdr: MacAddr
} catch (e: IllegalArgumentException) {
if (match.groups[4] == null) return emptyList()
// for DELETING, we only care about IP address and do not care if MAC is not present
if (state != State.DELETING) Timber.w(IOException("Failed to find MAC address for $line"))
if (state != State.DELETING) Timber.w(IOException("Failed to find MAC address for $line", e))
MacAddressCompat.ALL_ZEROS_ADDRESS
}
val result = IpNeighbour(ip, dev, mac, state)

View File

@@ -3,7 +3,7 @@ package be.mygod.vpnhotspot.net
import org.junit.Assert.*
import org.junit.Test
class ConvertersTest {
class MacAddressCompatTest {
@Test
fun macSerialization() {
for (test in listOf("01:23:45:67:89:ab", "DE:AD:88:88:BE:EF")) {