Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed May 29, 2024
1 parent 1c95f85 commit 9e000c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/main/java/com/infomaniak/drive/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class MainApplication : Application(), ImageLoaderFactory, DefaultLifecycleObser
tokenInterceptorListener = tokenInterceptorListener,
previousApiCall = uiSettings.accessTokenApiCallRecord,
updateLastApiCall = { uiSettings.accessTokenApiCallRecord = it },
)
),
)
HttpClient.init(tokenInterceptorListener)
MqttClientWrapper.init(applicationContext)
Expand Down Expand Up @@ -184,8 +184,6 @@ class MainApplication : Application(), ImageLoaderFactory, DefaultLifecycleObser
refreshTokenError(AccountUtils.currentUser!!)
}

override suspend fun getApiToken(): ApiToken? {
return AccountUtils.currentUser?.apiToken
}
override suspend fun getApiToken(): ApiToken? = AccountUtils.currentUser?.apiToken
}
}

0 comments on commit 9e000c7

Please sign in to comment.