From a5bec59bbe69f037519a2234d450f290c4d1fa62 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 9 May 2018 22:46:13 -0700 Subject: [PATCH] Refine code style --- .../main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt index 9562a740..e1a0357f 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt @@ -55,8 +55,7 @@ class IpNeighbourMonitor private constructor() : Runnable { thread("$TAG-error") { try { monitor.errorStream.bufferedReader().forEachLine { Log.e(TAG, it) } - } catch (ignore: InterruptedIOException) { - } + } catch (_: InterruptedIOException) { } } try { monitor.inputStream.bufferedReader().forEachLine { @@ -75,8 +74,7 @@ class IpNeighbourMonitor private constructor() : Runnable { val pool = Executors.newScheduledThreadPool(1) pool.scheduleAtFixedRate(this, 1, 1, TimeUnit.SECONDS) this.pool = pool - } catch (ignore: InterruptedIOException) { - } + } catch (_: InterruptedIOException) { } } }