diff --git a/data/home/src/main/java/com/terning/data/home/pagingsource/HomePagingSource.kt b/data/home/src/main/java/com/terning/data/home/pagingsource/HomePagingSource.kt index 50b1c166..42123662 100644 --- a/data/home/src/main/java/com/terning/data/home/pagingsource/HomePagingSource.kt +++ b/data/home/src/main/java/com/terning/data/home/pagingsource/HomePagingSource.kt @@ -10,7 +10,6 @@ class HomePagingSource( private val dataSource: HomeDataSource ) : PagingSource>() { - private var hasNextPage = false override suspend fun load(params: LoadParams): LoadResult> { return try { @@ -18,7 +17,7 @@ class HomePagingSource( val response = dataSource.getRecommendIntern(sortBy = sortBy, page = nextParamKey) val totalCount = response.result.totalCount - hasNextPage = response.result.hasNextPage + val hasNextPage = response.result.hasNextPage LoadResult.Page( data = response.result.result.map {