From f78d580531941d52bbbeca625c3f078beae8996a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:55:25 +0200 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java') 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 readConstant(file: String, gson: Gson = ConfigManager.gson): T { val data = getConstant(file) ?: ErrorManager.skyHanniError("$file failed to load from neu repo!") -- cgit