Skip to content

Commit 1e027dd

Browse files
committed
chore(buildSrc): Remove an unused index
While at it, stick to the default `it` for the option. This is a fixup for b71980e that silences a compiler warning. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 33c8075 commit 1e027dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

buildSrc/src/main/kotlin/GeneratePluginDocsTask.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ abstract class GeneratePluginDocsTask : DefaultTask() {
103103
appendLine("${descriptor["id"]}:")
104104

105105
fun appendOptions(options: List<Map<*, *>>) {
106-
options.forEachIndexed { index, option ->
107-
val defaultValue = option["default"]
108-
val type = option["type"]
106+
options.forEach {
107+
val defaultValue = it["default"]
108+
val type = it["type"]
109109
val isStringValue =
110110
(type == "SECRET" || type == "STRING" || type == "STRING_LIST") && defaultValue != null
111111

112-
append(" ${option["name"]}: ")
112+
append(" ${it["name"]}: ")
113113
if (isStringValue) append("\"")
114114
append(defaultValue)
115115
if (isStringValue) append("\"")

0 commit comments

Comments
 (0)