Skip to content

Commit

Permalink
feat(imp):[#214] fix PMD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jan 18, 2024
1 parent f080d72 commit 18dd6ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public <T> CompletableFuture<T> getFastestResult(final List<CompletableFuture<T>
if (ex != null) {
log.error("Exception occurred: " + ex.getMessage(), ex);
fastestResultPromise.completeExceptionally(new CompletionExceptions(exceptions));
} else if (!fastestResultPromise.isDone()) {
} else if (fastestResultPromise.isDone()) {
log.debug("Fastest result already found, ignoring the others");
} else {
log.debug("Completing");
fastestResultPromise.complete(null);
} else {
log.debug("Fastest result already found, ignoring the others");
}
});

Expand Down

0 comments on commit 18dd6ed

Please sign in to comment.