Skip to content

Commit

Permalink
Core style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Nov 6, 2014
1 parent dfb0032 commit a07057b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions core/src/main/scala/org/apache/spark/TaskEndReason.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ case class FetchFailed(
case class ExceptionFailure(
className: String,
description: String,
stackTrace: Array[StackTraceElement], // backwards compatibility
stackTrace: Array[StackTraceElement],
metrics: Option[TaskMetrics])
extends TaskFailedReason {

Expand All @@ -110,8 +110,7 @@ case class ExceptionFailure(
override def toErrorString: String =
if (fullStackTrace == null) {
Utils.exceptionString(className, description, stackTrace)
}
else {
} else {
fullStackTrace
}
}
Expand Down
3 changes: 1 addition & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1600,8 +1600,7 @@ private[spark] object Utils extends Logging {
def exceptionString(e: Throwable): String = {
if (e == null) {
""
}
else {
} else {
val stringWriter = new StringWriter()
e.printStackTrace(new PrintWriter(stringWriter))
stringWriter.toString
Expand Down

0 comments on commit a07057b

Please sign in to comment.