From de052ea7f2e7bef19794c00bc1a5b7488d5be34e Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 9 Mar 2017 13:32:17 -0800 Subject: [PATCH] Warnings. --- .../src/main/kotlin/com/beust/kobalt/AsciiArt.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/AsciiArt.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/AsciiArt.kt index df506b9f..6247caeb 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/AsciiArt.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/AsciiArt.kt @@ -150,9 +150,9 @@ class AsciiTable { append("\n") } var lineLength = 0 - rows.forEachIndexed { index, row -> + rows.forEachIndexed { _, row -> val formattedRow = row.mapIndexed { i, s -> col(widths[i], s) }.joinToString(vb) - val line = vb + " " + formattedRow + " " + vb + val line = "$vb $formattedRow $vb" result.append(line).append("\n") lineLength = line.length }