From 4e06d17d26cca7359f2a674ad4fa8f9680f7b38f Mon Sep 17 00:00:00 2001 From: Griefed Date: Fri, 5 Jul 2024 21:24:26 +0200 Subject: [PATCH] refactor: Remove unnecessary line break --- .../serverpackcreator/api/utilities/common/ClassUtilities.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt index f9a5cf167..1ac871919 100644 --- a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt +++ b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt @@ -43,9 +43,7 @@ private const val FILE = "file:" * @author Griefed */ @Throws(JarAccessException::class) -fun Class.source( - tempDir: File = File(tmpDir) -): File { +fun Class.source(tempDir: File = File(tmpDir)): File { val clazz = "$simpleName.class" val classResource: URL = getResource(clazz) ?: throw JarAccessException("Class resource is null") val url = classResource.toString()