Skip to content

Commit c10e27a

Browse files
author
Davies Liu
committed
Merge branch 'better_suffix' of github.com:davies/spark into better_suffix
2 parents 8be11b0 + 5849d9b commit c10e27a

File tree

1 file changed

+0
-7
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen

1 file changed

+0
-7
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeFormatter.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,8 @@ private class CodeFormatter {
3333
private val indentSize = 2
3434
private var indentString = ""
3535
private var currentLine = 1
36-
private var lastLine: String = _
3736

3837
private def addLine(line: String): Unit = {
39-
// ignore continuous empty lines
40-
if (line.isEmpty && (lastLine == "")) {
41-
return
42-
}
43-
lastLine = line
44-
4538
val indentChange =
4639
line.count(c => "({".indexOf(c) >= 0) - line.count(c => ")}".indexOf(c) >= 0)
4740
val newIndentLevel = math.max(0, indentLevel + indentChange)

0 commit comments

Comments
 (0)