mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01: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