Loading app/src/main/java/foundation/e/apps/data/gitlab/SystemAppsUpdatesRepository.kt +2 −5 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 ) { Loading Loading @@ -246,5 +244,4 @@ class SystemAppsUpdatesRepository @Inject constructor( return updateList } } Loading
app/src/main/java/foundation/e/apps/data/gitlab/SystemAppsUpdatesRepository.kt +2 −5 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 ) { Loading Loading @@ -246,5 +244,4 @@ class SystemAppsUpdatesRepository @Inject constructor( return updateList } }