From e49b44fc6323f68c648f0e6a7ba51bdd59199c1c Mon Sep 17 00:00:00 2001 From: Tuan Pham Date: Mon, 16 Sep 2024 21:13:03 +1000 Subject: [PATCH] Fix formatting --- .../mrpowers/spark/fast/tests/ArrayUtil.scala | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/src/main/scala/com/github/mrpowers/spark/fast/tests/ArrayUtil.scala b/core/src/main/scala/com/github/mrpowers/spark/fast/tests/ArrayUtil.scala index 7fdd719..adeb7c1 100644 --- a/core/src/main/scala/com/github/mrpowers/spark/fast/tests/ArrayUtil.scala +++ b/core/src/main/scala/com/github/mrpowers/spark/fast/tests/ArrayUtil.scala @@ -65,13 +65,15 @@ object ArrayUtil { .toString() // column names - rows.head.zipWithIndex.map { case (cell, i) => - if (truncate > 0) { - StringUtils.leftPad(cell, colWidths(i)) - } else { - StringUtils.rightPad(cell, colWidths(i)) + rows.head.zipWithIndex + .map { case (cell, i) => + if (truncate > 0) { + StringUtils.leftPad(cell, colWidths(i)) + } else { + StringUtils.rightPad(cell, colWidths(i)) + } } - }.addString(sb, "|", "|", "|\n") + .addString(sb, "|", "|", "|\n") sb.append(sep)