Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
kcooney committed Mar 29, 2015
1 parent e1f57db commit 44e12ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/junit/runner/BaseTestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ public static String getFilteredTrace(Throwable e) {
e.printStackTrace(writer);
String trace = stringWriter.toString();
if (!showStackRaw()) {
/*
* Since we have an exception and a stack trace, we can use the new
* stack trace filtering code.
*/
return StackTraceFilterer.getFilteredTrace(e, trace);
}
return BaseTestRunner.getFilteredTrace(trace);
Expand Down

0 comments on commit 44e12ce

Please sign in to comment.