Skip to content
Snippets Groups Projects
Commit fee20df1 authored by jiangxingbo's avatar jiangxingbo Committed by Reynold Xin
Browse files

[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.
parent 843ec8ec
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,6 @@ object CurrentOrigin {
def withOrigin[A](o: Origin)(f: => A): A = {
set(o)
val ret = try f finally { reset() }
reset()
ret
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment