Apply Prettier formatting
This commit is contained in:
parent
6201035891
commit
f6cc61053a
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue