Skip to content

Commit

Permalink
[MINOR][SQL] Remove duplicate call of reset() function in CurrentOrig…
Browse files Browse the repository at this point in the history
…in.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 <[email protected]>

Closes #16615 from jiangxb1987/dummy-code.
  • Loading branch information
jiangxb1987 authored and rxin committed Jan 17, 2017
1 parent 843ec8e commit fee20df
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ object CurrentOrigin {
def withOrigin[A](o: Origin)(f: => A): A = {
set(o)
val ret = try f finally { reset() }
reset()
ret
}
}
Expand Down

0 comments on commit fee20df

Please sign in to comment.