We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc179a3 commit 18a40c7Copy full SHA for 18a40c7
src/main/java/org/junit/support/testng/engine/ExecutionListener.java
@@ -237,12 +237,12 @@ private static Stream<Throwable> throwables(Set<ITestResult> results) {
237
238
private static Throwable chain(Stream<Throwable> failures) {
239
Iterator<Throwable> iterator = failures.iterator();
240
- Throwable throwable = null;
241
- if (iterator.hasNext()) {
242
- throwable = iterator.next();
243
- iterator.forEachRemaining(throwable::addSuppressed);
244
- }
245
- return throwable;
+ Throwable throwable = null;
+ if (iterator.hasNext()) {
+ throwable = iterator.next();
+ iterator.forEachRemaining(throwable::addSuppressed);
+ }
+ return throwable;
246
}
247
248
static class MethodProgress {
0 commit comments