Fix the result value of Configuration.obtained not being initialized
This commit is contained in:
parent
b2abce966a
commit
0c107be94b
|
@ -23,7 +23,7 @@ object Configuration {
|
||||||
setWritable(true)
|
setWritable(true)
|
||||||
writeText(base)
|
writeText(base)
|
||||||
setReadable(true)
|
setReadable(true)
|
||||||
} else result = try {
|
}; result = try {
|
||||||
ConfigFactory.parseFile(file)
|
ConfigFactory.parseFile(file)
|
||||||
} catch (e: ConfigException) {
|
} catch (e: ConfigException) {
|
||||||
Snowy.logs.warn("Could not parse the snowy configuration file, the default configuration will be used instead.")
|
Snowy.logs.warn("Could not parse the snowy configuration file, the default configuration will be used instead.")
|
||||||
|
|
Loading…
Reference in New Issue