Apply Prettier formatting

This commit is contained in:
anovazzi1 2024-06-22 22:06:23 +00:00 • committed by Gabriel Luiz Freitas Almeida
commit f6cc61053a

View file

@ -325,11 +325,10 @@ export async function getVersion() {
* @returns {Promise<AxiosResponse<any>>} A promise that resolves to an AxiosResponse containing the health status. * @returns {Promise<AxiosResponse<any>>} A promise that resolves to an AxiosResponse containing the health status.
*/ */
export async function getHealth() { export async function getHealth() {
return await api.get("/health").catch(e=>{ return await api.get("/health").catch((e) => {
if(e.code==="ECONNABORTED"){ if (e.code === "ECONNABORTED") {
console.log("request cancelled"); console.log("request cancelled");
} } else {
else{
// raise error to be caught by the caller // raise error to be caught by the caller
throw e; throw e;
} }