diff --git a/app/src/main/java/io/legado/app/help/storage/Restore.kt b/app/src/main/java/io/legado/app/help/storage/Restore.kt index d7de379d4..15c14051c 100644 --- a/app/src/main/java/io/legado/app/help/storage/Restore.kt +++ b/app/src/main/java/io/legado/app/help/storage/Restore.kt @@ -226,7 +226,7 @@ object Restore { fun importOldReplaceRule(json: String): Int { val replaceRules = mutableListOf() val items: List> = jsonPath.parse(json).read("$") - for ((index: Int, item: Map) in items.withIndex()) { + for (item in items) { val jsonItem = jsonPath.parse(item) OldRule.jsonToReplaceRule(jsonItem.jsonString())?.let { replaceRules.add(it)