Remove some warnings

This commit is contained in:
topjohnwu 2020-12-07 00:06:02 -08:00
parent ce916459c5
commit 58d00ab863

View File

@ -12,7 +12,7 @@ import com.topjohnwu.magisk.core.model.module.OnlineModule
import com.topjohnwu.magisk.core.utils.MediaStoreUtils import com.topjohnwu.magisk.core.utils.MediaStoreUtils
import com.topjohnwu.magisk.ktx.cachedFile import com.topjohnwu.magisk.ktx.cachedFile
import com.topjohnwu.magisk.ktx.get import com.topjohnwu.magisk.ktx.get
import kotlinx.android.parcel.IgnoredOnParcel import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize import kotlinx.parcelize.Parcelize
private fun cachedFile(name: String) = get<Context>().cachedFile(name).apply { delete() }.toUri() private fun cachedFile(name: String) = get<Context>().cachedFile(name).apply { delete() }.toUri()
@ -101,7 +101,6 @@ sealed class Subject : Parcelable {
Action.Download -> Download() Action.Download -> Download()
Action.Uninstall -> Uninstall() Action.Uninstall -> Uninstall()
Action.EnvFix, is Action.Flash, is Action.Patch -> Internal(config) Action.EnvFix, is Action.Flash, is Action.Patch -> Internal(config)
else -> throw IllegalArgumentException()
} }
} }