Refine code style

This commit is contained in:
Mygod
2020-06-21 06:06:06 +08:00
parent ad218d7ec6
commit 2ebe0e4962
16 changed files with 35 additions and 72 deletions

View File

@@ -370,7 +370,7 @@ class RootServer @JvmOverloads constructor(private val warnLogger: (String) -> U
loop@ while (true) {
val command = try {
input.readParcelable<Parcelable>(RootServer::class.java.classLoader)
} catch (e: EOFException) {
} catch (_: EOFException) {
break
}
val callback = counter

View File

@@ -40,7 +40,7 @@ interface RootCommandChannel<T : Parcelable?> : Parcelable {
@Parcelize
internal class ChannelClosed(val index: Long) : RootCommandOneWay {
override suspend fun execute() = throw IllegalStateException("Internal implementation")
override suspend fun execute() = error("Internal implementation")
}
@Parcelize

View File

@@ -1,7 +1,6 @@
package be.mygod.librootkotlinx
import android.annotation.SuppressLint
import android.os.IBinder
import android.os.Parcel
import android.os.Parcelable
import android.util.*