aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-23 15:55:25 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-23 15:55:25 +0200
commitf78d580531941d52bbbeca625c3f078beae8996a (patch)
treee1803a76ac55ef80b037462d0e9cf8707a7ba461
parentd39f595b150aaa0eee32c7ebacb961ef48095924 (diff)
downloadskyhanni-f78d580531941d52bbbeca625c3f078beae8996a.tar.gz
skyhanni-f78d580531941d52bbbeca625c3f078beae8996a.tar.bz2
skyhanni-f78d580531941d52bbbeca625c3f078beae8996a.zip
code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt
index 97a3f580c..9feb170c1 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt
@@ -15,9 +15,7 @@ import java.io.File
import java.lang.reflect.Type
class NeuRepositoryReloadEvent : LorenzEvent() {
- fun getConstant(file: String): JsonObject? {
- return File(manager.repoLocation, "constants/$file.json").getJson()
- }
+ fun getConstant(file: String): JsonObject? = File(manager.repoLocation, "constants/$file.json").getJson()
inline fun <reified T : Any> readConstant(file: String, gson: Gson = ConfigManager.gson): T {
val data = getConstant(file) ?: ErrorManager.skyHanniError("$file failed to load from neu repo!")