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

Commit 8c48056d authored by Md.Hasib Prince's avatar Md.Hasib Prince Committed by Aayush Gupta
Browse files

App Lounge: fixed lint issues

parent 04b6203e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -388,7 +388,6 @@ class FusedAPIImpl @Inject constructor(
        CleanAPKInterface.APP_TYPE_PWA
    ).body()


    suspend fun getApplicationDetails(
        packageNameList: List<String>,
        authData: AuthData,
+8 −3
Original line number Diff line number Diff line
@@ -6,7 +6,12 @@ import foundation.e.apps.domain.repositories.IApplicationsRepository
import javax.inject.Inject

class ApplicationListUseCase @Inject constructor(private val applicationRepository: IApplicationsRepository) {
    suspend fun getAppsList(category: String, browseUrl: String, authData: AuthData, source: String): List<FusedApp> {
    suspend fun getAppsList(
        category: String,
        browseUrl: String,
        authData: AuthData,
        source: String
    ): List<FusedApp> {
        return when (source) {
            "Open Source" -> applicationRepository.getOpenSourceApps(category)
            "PWA" -> applicationRepository.getPWAApps(category)
+1 −1

File changed and moved.

Contains only whitespace changes.

+3 −2
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@ import foundation.e.apps.api.fused.data.FusedApp
import foundation.e.apps.domain.repositories.IApplicationsRepository
import javax.inject.Inject

class ApplicationRepositoryImpl @Inject constructor(private val fusedAPIImpl: FusedAPIImpl) : IApplicationsRepository {
class ApplicationRepositoryImpl @Inject constructor(private val fusedAPIImpl: FusedAPIImpl) :
    IApplicationsRepository {
    override suspend fun getOpenSourceApps(category: String): List<FusedApp> {
        return fusedAPIImpl.getOpenSourceApps(category) ?: listOf()
    }
+1 −1

File changed.

Contains only whitespace changes.