Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 661f21b7 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

change how return works in InstallAppWorker.kt

parent 5c6ee644
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ class InstallAppWorker @AssistedInject constructor(
                    packageManagerModule.isInstalled(it.packageName)

                if (!fusedDownload.isAppInstalling()) {
                    return Result.success()
                    return@let
                }

                setForeground(
@@ -130,8 +130,8 @@ class InstallAppWorker @AssistedInject constructor(
            }
        } finally {
            Timber.i("doWork: RESULT SUCCESS: ${fusedDownload?.name}")
            return Result.success()
        }
        return Result.success()
    }

    private suspend fun InstallAppWorker.checkUpdateWork(