Commit c9550442 authored by Mygod's avatar Mygod

Refine code style

parent 3293280e
......@@ -31,7 +31,7 @@ data class TrafficStats(
// Bytes for the current session
var txTotal: Long = 0L,
var rxTotal: Long = 0L
): Parcelable {
) : Parcelable {
operator fun plus(other: TrafficStats) = TrafficStats(
txRate + other.txRate, rxRate + other.rxRate,
txTotal + other.txTotal, rxTotal + other.rxTotal)
......
......@@ -44,7 +44,7 @@ import java.util.concurrent.TimeUnit
/**
* 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 trafficMonitor: TrafficMonitor? = null
private val plugin = PluginConfiguration(profile.plugin ?: "").selectedOptions
......
......@@ -165,7 +165,7 @@ formatting:
active: true
autoCorrect: true
NoItParamInMultilineLambda:
active: true
active: false
NoLineBreakAfterElse:
active: 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