From 38bbd6050d03165f1f630a5f9801e1bc2594ed0a Mon Sep 17 00:00:00 2001 From: pranay Date: Tue, 23 Apr 2024 12:09:57 +0530 Subject: [PATCH] removed unnecessary try catch --- .../com/flipkart/gjex/core/task/ResilienceTaskExecutor.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java b/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java index 6a8ade60..0e7e1497 100644 --- a/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java +++ b/core/src/main/java/com/flipkart/gjex/core/task/ResilienceTaskExecutor.java @@ -94,13 +94,9 @@ public String getName() { public CompletableFuture getFuture() { Supplier supplier = prepareBaseSupplier(); - try { - return decorateSupplierWithResilience(supplier) + return decorateSupplierWithResilience(supplier) .get() .toCompletableFuture(); - } catch (Exception e) { - throw new RuntimeException(e); - } } private Supplier prepareBaseSupplier() {