From ee931af91dc6e265362355e0c9faab7c410e51a1 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 13 Jul 2024 15:02:32 -0700 Subject: [PATCH] Remove unnecessary try-catch block since static method with no inputs has nothing useful for us to catch and should be handled further up the call stack. --- src/System/Date/today/System_Date_today.cls | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/System/Date/today/System_Date_today.cls b/src/System/Date/today/System_Date_today.cls index be7f6ea..7702cd5 100644 --- a/src/System/Date/today/System_Date_today.cls +++ b/src/System/Date/today/System_Date_today.cls @@ -11,11 +11,7 @@ global class System_Date_today { List responses = new List(); for (Request req : requests) { Response res = new Response(); - try { - res.today = Date.today(); - } catch (Exception e) { - System.debug(e); - } + res.today = Date.today(); responses.add(res); } return responses; -- 2.52.0