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

Commit 14ec62c6 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

chore: apply Jonathan's suggestion

parent 17a947b4
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ class SystemAppsUpdatesRepository @Inject constructor(
    ): Application? {

        val systemAppProject = systemAppProjectList.find { it.packageName == packageName } ?: return null
        val detailsUrl = getReleaseDetailsUrl(systemAppProject, releaseType)
        val detailsUrl = getReleaseDetailsUrl(systemAppProject, releaseType) ?: return null

        val systemAppInfo = getSystemAppInfo(packageName, detailsUrl) ?: return null

@@ -162,10 +162,8 @@ class SystemAppsUpdatesRepository @Inject constructor(

    private suspend fun getSystemAppInfo(
        packageName: String,
        detailsUrl: String?
        detailsUrl: String
    ): SystemAppInfo? {
        if (detailsUrl.isNullOrEmpty()) return null

        val response = systemAppDefinitionApi.getSystemAppUpdateInfo(detailsUrl)

        return if (response.isSuccessful ) {
@@ -246,5 +244,4 @@ class SystemAppsUpdatesRepository @Inject constructor(

        return updateList
    }

}