mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
fix formatting by kotlinter
This commit is contained in:
@@ -5,11 +5,10 @@ import com.github.junrar.rarfile.FileHeader
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.util.lang.compareToCaseInsensitiveNaturalOrder
|
||||
import suwayomi.tachidesk.manga.impl.util.storage.ImageUtil
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.io.InputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.File
|
||||
|
||||
import java.io.InputStream
|
||||
|
||||
/**
|
||||
* Loader used to load a chapter from a .rar or .cbr file.
|
||||
|
||||
@@ -136,7 +136,6 @@ object BackupController {
|
||||
description("Reports missing sources and trackers, expects a Tachiyomi protobuf backup in the body")
|
||||
}
|
||||
body<ByteArray>("") {
|
||||
|
||||
}
|
||||
},
|
||||
behaviorOf = { ctx ->
|
||||
|
||||
@@ -49,7 +49,6 @@ object CategoryController {
|
||||
} else {
|
||||
ctx.status(HttpCode.BAD_REQUEST)
|
||||
}
|
||||
|
||||
},
|
||||
withResults = {
|
||||
httpCode(HttpCode.OK)
|
||||
|
||||
@@ -78,7 +78,6 @@ object DownloadController {
|
||||
DownloadManager.clear()
|
||||
|
||||
ctx.status(200)
|
||||
|
||||
},
|
||||
withResults = {
|
||||
httpCode(HttpCode.OK)
|
||||
|
||||
@@ -85,7 +85,6 @@ object ExtensionController {
|
||||
Extension.installExternalExtension(uploadedFile.content, uploadedFile.filename)
|
||||
}
|
||||
)
|
||||
|
||||
},
|
||||
withResults = {
|
||||
httpCode(HttpCode.CREATED)
|
||||
|
||||
@@ -116,7 +116,6 @@ object SourceController {
|
||||
},
|
||||
behaviorOf = { ctx, sourceId ->
|
||||
ctx.json(Source.getSourcePreferences(sourceId))
|
||||
|
||||
},
|
||||
withResults = {
|
||||
json<List<Source.PreferenceObject>>(HttpCode.OK)
|
||||
|
||||
@@ -77,7 +77,7 @@ object CategoryManga {
|
||||
)
|
||||
|
||||
val selectedColumns = MangaTable.columns + unreadExpression + downloadExpression + chapterCountExpression
|
||||
|
||||
|
||||
val transform: (ResultRow) -> MangaDataClass = {
|
||||
val dataClass = MangaTable.toDataClass(it)
|
||||
dataClass.unreadCount = it[unreadExpression]?.toInt()
|
||||
|
||||
Reference in New Issue
Block a user