Skip to content

Commit fee20df

Browse files
jiangxb1987rxin
authored andcommitted
[MINOR][SQL] Remove duplicate call of reset() function in CurrentOrigin.withOrigin()
## What changes were proposed in this pull request? Remove duplicate call of reset() function in CurrentOrigin.withOrigin(). ## How was this patch tested? Existing test cases. Author: jiangxingbo <jiangxb1987@gmail.com> Closes #16615 from jiangxb1987/dummy-code.
1 parent 843ec8e commit fee20df

File tree

1 file changed

+0
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees

1 file changed

+0
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ object CurrentOrigin {
6868
def withOrigin[A](o: Origin)(f: => A): A = {
6969
set(o)
7070
val ret = try f finally { reset() }
71-
reset()
7271
ret
7372
}
7473
}

0 commit comments

Comments
 (0)