Fixed: UnsafeCallOnNullableType detekt issue

This commit is contained in:
MohitMaliFtechiz 2025-02-24 17:30:23 +05:30
parent 6e804384a9
commit 66874849e2

View File

@ -176,15 +176,17 @@ class ZimManageViewModel @Inject constructor(
.addNetworkInterceptor(UserAgentInterceptor(USER_AGENT))
.addNetworkInterceptor { chain ->
val originalResponse = chain.proceed(chain.request())
originalResponse.body?.let { responseBody ->
originalResponse.newBuilder()
.body(
ProgressResponseBody(
originalResponse.body!!,
responseBody,
AppProgressListenerProvider(this),
contentLength
)
)
.build()
} ?: originalResponse
}
.build()
return KiwixService.ServiceCreator.newHackListService(customOkHttpClient, KIWIX_DOWNLOAD_URL)
@ -325,6 +327,7 @@ class ZimManageViewModel @Inject constructor(
return None
}
@Suppress("NoNameShadowing")
private fun requestsAndConnectivtyChangesToLibraryRequests(
library: PublishProcessor<LibraryNetworkEntity>,
) =