mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-06 10:45:43 +08:00
Fix detekt
This commit is contained in:
@@ -82,6 +82,7 @@ private class BackendService {
|
|||||||
|
|
||||||
private class ItemPagingSource(private val backend: BackendService) : PagingSource<Int, Item>() {
|
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> =
|
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, Item> =
|
||||||
try {
|
try {
|
||||||
val nextPageNumber = params.key ?: 0
|
val nextPageNumber = params.key ?: 0
|
||||||
|
Reference in New Issue
Block a user