mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-19 03:02: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.source.model.Page
|
||||||
import eu.kanade.tachiyomi.util.lang.compareToCaseInsensitiveNaturalOrder
|
import eu.kanade.tachiyomi.util.lang.compareToCaseInsensitiveNaturalOrder
|
||||||
import suwayomi.tachidesk.manga.impl.util.storage.ImageUtil
|
import suwayomi.tachidesk.manga.impl.util.storage.ImageUtil
|
||||||
import java.io.ByteArrayOutputStream
|
|
||||||
import java.io.ByteArrayInputStream
|
import java.io.ByteArrayInputStream
|
||||||
import java.io.InputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
import java.io.InputStream
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loader used to load a chapter from a .rar or .cbr file.
|
* 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")
|
description("Reports missing sources and trackers, expects a Tachiyomi protobuf backup in the body")
|
||||||
}
|
}
|
||||||
body<ByteArray>("") {
|
body<ByteArray>("") {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
behaviorOf = { ctx ->
|
behaviorOf = { ctx ->
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ object CategoryController {
|
|||||||
} else {
|
} else {
|
||||||
ctx.status(HttpCode.BAD_REQUEST)
|
ctx.status(HttpCode.BAD_REQUEST)
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
httpCode(HttpCode.OK)
|
httpCode(HttpCode.OK)
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ object DownloadController {
|
|||||||
DownloadManager.clear()
|
DownloadManager.clear()
|
||||||
|
|
||||||
ctx.status(200)
|
ctx.status(200)
|
||||||
|
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
httpCode(HttpCode.OK)
|
httpCode(HttpCode.OK)
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ object ExtensionController {
|
|||||||
Extension.installExternalExtension(uploadedFile.content, uploadedFile.filename)
|
Extension.installExternalExtension(uploadedFile.content, uploadedFile.filename)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
httpCode(HttpCode.CREATED)
|
httpCode(HttpCode.CREATED)
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ object SourceController {
|
|||||||
},
|
},
|
||||||
behaviorOf = { ctx, sourceId ->
|
behaviorOf = { ctx, sourceId ->
|
||||||
ctx.json(Source.getSourcePreferences(sourceId))
|
ctx.json(Source.getSourcePreferences(sourceId))
|
||||||
|
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
json<List<Source.PreferenceObject>>(HttpCode.OK)
|
json<List<Source.PreferenceObject>>(HttpCode.OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user