Commit c9550442 authored by Mygod's avatar Mygod

Refine code style

parent 3293280e
...@@ -31,7 +31,7 @@ data class TrafficStats( ...@@ -31,7 +31,7 @@ data class TrafficStats(
// Bytes for the current session // Bytes for the current session
var txTotal: Long = 0L, var txTotal: Long = 0L,
var rxTotal: Long = 0L var rxTotal: Long = 0L
): Parcelable { ) : Parcelable {
operator fun plus(other: TrafficStats) = TrafficStats( operator fun plus(other: TrafficStats) = TrafficStats(
txRate + other.txRate, rxRate + other.rxRate, txRate + other.txRate, rxRate + other.rxRate,
txTotal + other.txTotal, rxTotal + other.rxTotal) txTotal + other.txTotal, rxTotal + other.rxTotal)
......
...@@ -44,7 +44,7 @@ import java.util.concurrent.TimeUnit ...@@ -44,7 +44,7 @@ import java.util.concurrent.TimeUnit
/** /**
* This class sets up environment for ss-local. * This class sets up environment for ss-local.
*/ */
class ProxyInstance(val profile: Profile, private val route: String = profile.route): AutoCloseable { class ProxyInstance(val profile: Profile, private val route: String = profile.route) : AutoCloseable {
var configFile: File? = null var configFile: File? = null
var trafficMonitor: TrafficMonitor? = null var trafficMonitor: TrafficMonitor? = null
private val plugin = PluginConfiguration(profile.plugin ?: "").selectedOptions private val plugin = PluginConfiguration(profile.plugin ?: "").selectedOptions
......
...@@ -165,7 +165,7 @@ formatting: ...@@ -165,7 +165,7 @@ formatting:
active: true active: true
autoCorrect: true autoCorrect: true
NoItParamInMultilineLambda: NoItParamInMultilineLambda:
active: true active: false
NoLineBreakAfterElse: NoLineBreakAfterElse:
active: true active: true
autoCorrect: true autoCorrect: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment