Update linter

This commit is contained in:
arkon
2022-05-10 17:54:52 -04:00
parent 8bee5accb7
commit ae7df4fb7f
49 changed files with 119 additions and 117 deletions

View File

@@ -3,7 +3,7 @@ package eu.kanade.domain.history.interactor
import eu.kanade.domain.history.repository.HistoryRepository
class DeleteHistoryTable(
private val repository: HistoryRepository
private val repository: HistoryRepository,
) {
suspend fun await(): Boolean {

View File

@@ -8,12 +8,12 @@ import eu.kanade.domain.history.repository.HistoryRepository
import kotlinx.coroutines.flow.Flow
class GetHistory(
private val repository: HistoryRepository
private val repository: HistoryRepository,
) {
fun subscribe(query: String): Flow<PagingData<HistoryWithRelations>> {
return Pager(
PagingConfig(pageSize = 25)
PagingConfig(pageSize = 25),
) {
repository.getHistory(query)
}.flow

View File

@@ -4,7 +4,7 @@ import eu.kanade.domain.chapter.model.Chapter
import eu.kanade.domain.history.repository.HistoryRepository
class GetNextChapterForManga(
private val repository: HistoryRepository
private val repository: HistoryRepository,
) {
suspend fun await(mangaId: Long, chapterId: Long): Chapter? {

View File

@@ -4,7 +4,7 @@ import eu.kanade.domain.history.model.HistoryWithRelations
import eu.kanade.domain.history.repository.HistoryRepository
class RemoveHistoryById(
private val repository: HistoryRepository
private val repository: HistoryRepository,
) {
suspend fun await(history: HistoryWithRelations) {

View File

@@ -3,7 +3,7 @@ package eu.kanade.domain.history.interactor
import eu.kanade.domain.history.repository.HistoryRepository
class RemoveHistoryByMangaId(
private val repository: HistoryRepository
private val repository: HistoryRepository,
) {
suspend fun await(mangaId: Long) {

View File

@@ -5,5 +5,5 @@ import java.util.Date
data class History(
val id: Long?,
val chapterId: Long,
val readAt: Date?
val readAt: Date?,
)

View File

@@ -9,5 +9,5 @@ data class HistoryWithRelations(
val title: String,
val thumbnailUrl: String,
val chapterNumber: Float,
val readAt: Date?
val readAt: Date?,
)