Skip to content

Commit e038b31

Browse files
committed
Minor tweak for coding style in AbstractCompletableTask.whenCompleteAsync (both handlers look symmetrical now)
1 parent 104d53b commit e038b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/tascalate/concurrent/AbstractCompletableTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ public Promise<T> whenCompleteAsync(BiConsumer<? super T, ? super Throwable> act
311311
result -> {
312312
try {
313313
action.accept(result, null);
314-
return result;
315314
} catch (Throwable e) {
316315
// CompletableFuture wraps exception here
317316
// Copying this behavior
318317
return forwardException(e);
319318
}
319+
return result;
320320
},
321321
// exceptions are handled in regular way
322322
failure -> {

0 commit comments

Comments
 (0)