From 5e113833a576526fad035bd71abe67168ad89238 Mon Sep 17 00:00:00 2001 From: ligi Date: Wed, 29 Dec 2021 22:19:53 +0100 Subject: [PATCH] Unshadow name extraFields --- src/main/kotlin/org/ethereum/lists/chains/Main.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/src/main/kotlin/org/ethereum/lists/chains/Main.kt index b0caef1b..523ca1ce 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -220,9 +220,9 @@ fun checkChain(chainFile: File, connectRPC: Boolean) { throw ParentMustHaveChainAndType() } - val extraFields = it.keys - setOf("chain", "type", "bridges") - if (extraFields.isNotEmpty()) { - throw ParentHasExtraFields(extraFields) + val extraParentFields = it.keys - setOf("chain", "type", "bridges") + if (extraParentFields.isNotEmpty()) { + throw ParentHasExtraFields(extraParentFields) } val bridges = it["bridges"]