Skip to content

Commit 3d65b35

Browse files
author
Reza Safi
committed
Removing a return
1 parent 0a7402e commit 3d65b35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/scala/org/apache/spark/executor/ProcfsMetricsGetter.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ private[spark] class ProcfsMetricsGetter(procfsDir: String = "/proc/") extends L
7575
// https://docs.oracle.com/javase/9/docs/api/java/lang/ProcessHandle.html
7676
val cmd = Array("bash", "-c", "echo $PPID")
7777
val out = Utils.executeAndGetOutput(cmd)
78-
val pid = Integer.parseInt(out.split("\n")(0))
79-
return pid;
78+
Integer.parseInt(out.split("\n")(0))
8079
}
8180
catch {
8281
case e: SparkException =>

0 commit comments

Comments
 (0)