Skip to content

Commit cb09e93

Browse files
willbaarondav
authored andcommitted
Reformat multi-line closure argument.
Author: William Benton <[email protected]> Closes apache#1419 from willb/reformat-2486 and squashes the following commits: 2676231 [William Benton] Reformat multi-line closure argument.
1 parent 04b01bb commit cb09e93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,11 +809,12 @@ private[spark] object Utils extends Logging {
809809
*/
810810
def getCallSite: CallSite = {
811811
val trace = Thread.currentThread.getStackTrace()
812-
.filterNot((ste:StackTraceElement) =>
812+
.filterNot { ste:StackTraceElement =>
813813
// When running under some profilers, the current stack trace might contain some bogus
814814
// frames. This is intended to ensure that we don't crash in these situations by
815815
// ignoring any frames that we can't examine.
816-
(ste == null || ste.getMethodName == null || ste.getMethodName.contains("getStackTrace")))
816+
(ste == null || ste.getMethodName == null || ste.getMethodName.contains("getStackTrace"))
817+
}
817818

818819
// Keep crawling up the stack trace until we find the first function not inside of the spark
819820
// package. We track the last (shallowest) contiguous Spark method. This might be an RDD

0 commit comments

Comments
 (0)