mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Simplify secondary config parse (#1540)
* Add backslash escaping * Use parseMap instead
This commit is contained in:
@@ -56,7 +56,7 @@ class SystemPropertyOverrideDelegate(
|
|||||||
try {
|
try {
|
||||||
ConfigFactory.parseString("internal=$systemProperty")
|
ConfigFactory.parseString("internal=$systemProperty")
|
||||||
} catch (_: ConfigException) {
|
} catch (_: ConfigException) {
|
||||||
ConfigFactory.parseString("internal=\"$systemProperty\"")
|
ConfigFactory.parseMap(mapOf("internal" to systemProperty))
|
||||||
}
|
}
|
||||||
|
|
||||||
val genericType = object : TypeReference<T>() {}.genericType()
|
val genericType = object : TypeReference<T>() {}.genericType()
|
||||||
|
|||||||
Reference in New Issue
Block a user