Detekt: fix OptionalUnit issue.

This commit is contained in:
Benoit Marty
2023-09-26 14:20:43 +02:00
committed by Benoit Marty
parent 51906c4596
commit 9a74948536

View File

@@ -130,8 +130,7 @@ class AndroidLocalMediaActions @Inject constructor(
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if (activityContext?.packageManager?.canRequestPackageInstalls() == false) {
pendingMedia = localMedia
activityContext?.startInstallFromSourceIntent(apkInstallLauncher!!)
Unit
activityContext?.startInstallFromSourceIntent(apkInstallLauncher!!).let { }
} else {
openFile(localMedia)
}