184: Fixup lingering formatting issues r=msfjarvis a=msfjarvis

bors r+

Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
bors[bot] 2021-04-02 10:56:53 +00:00 committed by GitHub
commit 9c10cb02b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View file

@ -29,7 +29,7 @@ class LobstersBottomNavTest : ScreenshotTest {
DarkTestTheme {
LobstersBottomNav(
currentDestination = Destination.startDestination,
navigateToDestination = { /*TODO*/},
navigateToDestination = {},
jumpToIndex = { _, _ -> },
)
}

View file

@ -5,8 +5,7 @@ import androidx.paging.PagingState
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
import dev.msfjarvis.lobsters.model.LobstersPost
class HottestPostsPagingSource
constructor(
class HottestPostsPagingSource(
private val lobstersRepository: LobstersRepository,
) : PagingSource<Int, LobstersPost>() {

View file

@ -5,8 +5,7 @@ import androidx.paging.PagingState
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
import dev.msfjarvis.lobsters.model.LobstersPost
class NewestPostsPagingSource
constructor(
class NewestPostsPagingSource(
private val lobstersRepository: LobstersRepository,
) : PagingSource<Int, LobstersPost>() {

View file

@ -9,8 +9,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.withContext
class LobstersRepository
constructor(
class LobstersRepository(
private val lobstersApi: LobstersApi,
private val lobstersDatabase: LobstersDatabase,
) {