From f6cc61053af4b24b78268d12ca9ad161da7958f8 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sat, 22 Jun 2024 22:06:23 +0000 Subject: [PATCH] Apply Prettier formatting --- src/frontend/src/controllers/API/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 70887b856..17e89debe 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -325,11 +325,10 @@ export async function getVersion() { * @returns {Promise>} A promise that resolves to an AxiosResponse containing the health status. */ export async function getHealth() { - return await api.get("/health").catch(e=>{ - if(e.code==="ECONNABORTED"){ + return await api.get("/health").catch((e) => { + if (e.code === "ECONNABORTED") { console.log("request cancelled"); - } - else{ + } else { // raise error to be caught by the caller throw e; }