Skip to content

Commit

Permalink
removed unnecessary try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
sandboxo committed Apr 23, 2024
1 parent 0f1d0bb commit 38bbd60
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,9 @@ public String getName() {

public CompletableFuture<T> getFuture() {
Supplier<T> supplier = prepareBaseSupplier();
try {
return decorateSupplierWithResilience(supplier)
return decorateSupplierWithResilience(supplier)
.get()
.toCompletableFuture();
} catch (Exception e) {
throw new RuntimeException(e);
}
}

private Supplier<T> prepareBaseSupplier() {
Expand Down

0 comments on commit 38bbd60

Please sign in to comment.