Skip to content

Commit 36e504d

Browse files
authored
DiffUtils: name boolean function parameter (#397)
1 parent 05b82db commit 36e504d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/scala/org/scalafmt/sbt/DiffUtils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ object DiffUtils {
1111
val last = if (addEol) Iterator.single("") else Iterator.empty
1212
(code.linesIterator ++ last).toIndexedSeq.asJava
1313
}
14-
val a = jList(input, false)
14+
val a = jList(input, addEol = false)
1515
// output always has EOL; if input doesn't, pretend output has extra line
1616
val inputNoEol = input.lastOption.forall(x => x != '\n' && x != '\r')
17-
val b = jList(output, inputNoEol)
17+
val b = jList(output, addEol = inputNoEol)
1818
val patch = generateUnifiedDiff(s"a$file", s"b$file", a, diff(a, b), 1)
1919
if (patch.isEmpty) "" else patch.iterator().asScala.mkString("\n")
2020
}

0 commit comments

Comments
 (0)