Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 942f0b8

Browse files
author
Eduard Ablekimov
committed
Make api description non-nullable
1 parent ec4806c commit 942f0b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rest-fetcher/src/main/java/com/ackee/versionupdatehandler/RestVersionFetcher.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RestVersionFetcher(
3333
suspend fun versions(): JsonObject?
3434
}
3535

36-
private val api: ApiDescription? by lazy {
36+
private val api: ApiDescription by lazy {
3737
Retrofit.Builder()
3838
.baseUrl(baseUrl)
3939
.addConverterFactory(
@@ -44,7 +44,7 @@ class RestVersionFetcher(
4444
}
4545

4646
override suspend fun fetch(): VersionsConfiguration {
47-
return api?.versions()?.map() ?: DefaultVersionsConfiguration
47+
return api.versions()?.map() ?: DefaultVersionsConfiguration
4848
}
4949

5050
private fun JsonObject.map(): BasicVersionsConfiguration {

0 commit comments

Comments
 (0)