From 2aaa19e05e6ee8f8302005bfbe089fbf62a32b2a Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 4 May 2022 20:40:46 +0100 Subject: [PATCH] Format CacheExporter Signed-off-by: Graham --- .../main/kotlin/org/openrs2/archive/cache/CacheExporter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt index b8b176bf..583cfe04 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt @@ -513,7 +513,8 @@ public class CacheExporter @Inject constructor( public suspend fun exportGroup(scope: String, id: Int, archive: Int, group: Int): ByteBuf? { return database.execute { connection -> - connection.prepareStatement(""" + connection.prepareStatement( + """ SELECT g.data FROM resolved_groups g JOIN scopes s ON s.id = g.scope_id @@ -522,7 +523,8 @@ public class CacheExporter @Inject constructor( SELECT f.data FROM resolved_files f WHERE f.crc_table_id = ? AND f.index_id = ? AND f.file_id = ? - """.trimIndent()).use { stmt -> + """.trimIndent() + ).use { stmt -> stmt.setString(1, scope) stmt.setInt(2, id) stmt.setInt(3, archive)