Skip to content

Commit

Permalink
Code style improvement
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Koenig <koenig@sifive.com>
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
  • Loading branch information
seldridge and jackkoenig committed Mar 19, 2020
1 parent 18520bf commit 30a0a5f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chiselFrontend/src/main/scala/chisel3/internal/Error.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ class ChiselException(message: String, cause: Throwable = null) extends Exceptio
}
}

private lazy val likelyCause: Throwable = findCause(this, builderName) match {
case Some(a) => a
case None => this
}
private lazy val likelyCause: Throwable = findCause(this, builderName).getOrElse(this)

/** For an exception, return a stack trace trimmed to user code only
*
Expand Down

0 comments on commit 30a0a5f

Please sign in to comment.