Refine code style
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.*
|
||||
|
||||
Reference in New Issue
Block a user