优化规则解析

pull/423/head
gedoor 4 years ago
parent 9b1c700ab5
commit f5c919302d
  1. 7
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeByJSonPath.kt

@ -13,10 +13,9 @@ class AnalyzeByJSonPath {
private lateinit var ctx: ReadContext private lateinit var ctx: ReadContext
fun parse(json: Any): AnalyzeByJSonPath { fun parse(json: Any): AnalyzeByJSonPath {
ctx = if (json is String) { ctx = when (json) {
JsonPath.parse(json) is String -> JsonPath.parse(json)
} else { else -> JsonPath.parse(json)
JsonPath.parse(json)
} }
return this return this
} }

Loading…
Cancel
Save