Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Dec 17, 2022
1 parent 0aafd61 commit 1aa15de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object AppUpdateHelper {

if (force || prefs.getLong(key, 0) < System.currentTimeMillis() - 1000 * 3600 * 24 / 24 / 60 * 5) {
try {
val versionList = requestVersions(gitRepoUrl)
val versionList = requestGithubVersions(gitRepoUrl)
prefs.edit().putLong(key, System.currentTimeMillis()).apply()

versionList.body()?.firstOrNull()?.let { release ->
Expand Down Expand Up @@ -112,7 +112,7 @@ object AppUpdateHelper {
return client.github.getGithubVersions(gitRepoUrl.user(), gitRepoUrl.repo()).execute()
}

private suspend fun requestVersions(gitRepoUrl: String): Response<MutableList<GithubVersion>> {
private suspend fun requestGithubVersions(gitRepoUrl: String): Response<MutableList<GithubVersion>> {
val versionList = withContext(Dispatchers.Default) {
val client = GithubClient(HttpLoggingInterceptor.Level.BODY)
client.github.getGithubVersions(gitRepoUrl.user(), gitRepoUrl.repo()).execute()
Expand Down

0 comments on commit 1aa15de

Please sign in to comment.