From 0c107be94bbb0f32a4901c7c2655a579c6d60f60 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 23 Apr 2021 11:57:18 +0200 Subject: [PATCH] Fix the result value of Configuration.obtained not being initialized --- .../main/kotlin/fr/username404/snowygui/config/Configuration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index 1cd24aa..8a56ad4 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -23,7 +23,7 @@ object Configuration { setWritable(true) writeText(base) setReadable(true) - } else result = try { + }; result = try { ConfigFactory.parseFile(file) } catch (e: ConfigException) { Snowy.logs.warn("Could not parse the snowy configuration file, the default configuration will be used instead.")