diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index cfb01612b..9e2381693 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -483,9 +483,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { } fun put(key: String, value: String): String { - if (book != null) { - book!!.putVariable(key, value) - } + book?.putVariable(key, value) return value }