From 059433320f3201732aa01d289c778e131011f6d2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 7 Jan 2020 21:50:45 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/Restore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)