From: Chris Duncan Date: Sat, 13 Jul 2024 22:02:32 +0000 (-0700) Subject: Remove unnecessary try-catch block since static method with no inputs has nothing... X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=ee931af91dc6e265362355e0c9faab7c410e51a1;p=flowpex.git 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. --- 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;