Fix lint error

This commit is contained in:
MohitMali 2022-10-17 17:25:47 +05:30 committed by Kelson
parent d3223eb900
commit b1b2f435c2

View File

@ -43,7 +43,7 @@ class DownloaderImpl @Inject constructor(
}
private fun urlProvider(book: Book): Observable<String> =
if (book.url?.endsWith("meta4") == true) kiwixService.getMetaLinks(book.url)
if (book.url?.endsWith("meta4") == true) kiwixService.getMetaLinks(book.url!!)
.map { it.relevantUrl.value }
else Observable.just(book.url)