Fix detekt

This commit is contained in:
Oleksandr Balan
2023-03-21 17:50:47 +01:00
parent 27a3ae2e79
commit 6ccf7076ab

View File

@@ -82,6 +82,7 @@ private class BackendService {
private class ItemPagingSource(private val backend: BackendService) : PagingSource<Int, Item>() {
@Suppress("TooGenericExceptionCaught") // It is only for demo purpose
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, Item> =
try {
val nextPageNumber = params.key ?: 0