Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit cb7f1ce

Browse files
UnaiUribarri-TomTomghostbuster91
authored andcommitted
Replace String.repeat with StringLike.* (#437)
String.repeat is only available in JVM 11 or newer but StringLike.`*` operator is available since Scala 2.8, regardless of JVM version.
1 parent 9d660f8 commit cb7f1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/com/softwaremill/diffx/DiffResultPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ object DiffResultPrinter {
9797
withColor(l, c.left, indent) + arrowColor(" -> ") + withColor(r, c.right, indent)
9898

9999
private def withColor(value: String, color: String => String, indent: Int): String = {
100-
value.split("\n", -1).map(color(_)).mkString("\n" + " ".repeat(indent))
100+
value.split("\n", -1).map(color(_)).mkString("\n" + " " * indent)
101101
}
102102
}

0 commit comments

Comments
 (0)