fix formatting by kotlinter

This commit is contained in:
Aria Moradi
2022-05-06 17:52:16 +04:30
parent 39b468ef06
commit 5bbc1dedef
7 changed files with 3 additions and 9 deletions

View File

@@ -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.

View 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 ->

View File

@@ -49,7 +49,6 @@ object CategoryController {
} else {
ctx.status(HttpCode.BAD_REQUEST)
}
},
withResults = {
httpCode(HttpCode.OK)

View File

@@ -78,7 +78,6 @@ object DownloadController {
DownloadManager.clear()
ctx.status(200)
},
withResults = {
httpCode(HttpCode.OK)

View File

@@ -85,7 +85,6 @@ object ExtensionController {
Extension.installExternalExtension(uploadedFile.content, uploadedFile.filename)
}
)
},
withResults = {
httpCode(HttpCode.CREATED)

View File

@@ -116,7 +116,6 @@ object SourceController {
},
behaviorOf = { ctx, sourceId ->
ctx.json(Source.getSourcePreferences(sourceId))
},
withResults = {
json<List<Source.PreferenceObject>>(HttpCode.OK)

View File

@@ -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()