Reformat code
authorLanius Trolling <lanius@laniustrolling.dev>
Sun, 4 Feb 2024 15:04:51 +0000 (10:04 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Sun, 4 Feb 2024 15:04:51 +0000 (10:04 -0500)
src/jvmMain/kotlin/info/mechyrdia/Factbooks.kt
src/jvmMain/kotlin/info/mechyrdia/lore/views_lore.kt

index 6974f158c1aeb153805bf87dd8131b6308801e88..6e0406011e4531c80a1f2265fab88ddc7cce5325 100644 (file)
@@ -64,7 +64,7 @@ fun Application.factbooks() {
        }
        
        install(ConditionalHeaders) {
-               version { call, outgoingContent ->
+               version { _, outgoingContent ->
                        if (outgoingContent is LocalFileContent)
                                listOf(LastModifiedVersion(outgoingContent.file.lastModified()))
                        else
index e594946dc8136e24796410ac3a5a22247f4d82a0..b6570fc618049b243c88b1be50838679c3c0de1d 100644 (file)
@@ -83,6 +83,7 @@ suspend fun ApplicationCall.loreArticlePage(): HTML.() -> Unit {
                                finalSection(pagePath, canCommentAs, comments, totalsData)
                        }
                }
+               
                if (pageFile.isFile) {
                        val pageTemplate = pageFile.readText()
                        val pageMarkup = PreParser.preparse(pagePath, pageTemplate)