From 9c0ecbdfc6c453983f93a58e80ddb4d1294b4483 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 6 Aug 2023 15:05:27 +0200 Subject: [PATCH] refactor: cleanup try catch constructs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../ui-server/ui-services/AbstractUIService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index 8e359b4d..6fd59b86 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -193,7 +193,7 @@ export abstract class AbstractUIService { try { await Bootstrap.getInstance().start(); return { status: ResponseStatus.SUCCESS }; - } catch (error) { + } catch { return { status: ResponseStatus.FAILURE }; } } @@ -202,7 +202,7 @@ export abstract class AbstractUIService { try { await Bootstrap.getInstance().stop(); return { status: ResponseStatus.SUCCESS }; - } catch (error) { + } catch { return { status: ResponseStatus.FAILURE }; } } -- 2.34.1