From 09f4006326d2967bd52017f952a7d9b76c17fc4c Mon Sep 17 00:00:00 2001 From: Xeltica Date: Wed, 6 Jan 2021 02:23:58 +0900 Subject: [PATCH] refactor --- src/services/misskey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/misskey.ts b/src/services/misskey.ts index 64cbd93..71afa3b 100644 --- a/src/services/misskey.ts +++ b/src/services/misskey.ts @@ -15,7 +15,7 @@ export const api = >(host: string, endpoint: string, return axios.post(`https://${host}/api/${endpoint}`, a).then(res => res.data); }; -export const apiAvailable = async (host: string, i: string) : Promise => { +export const apiAvailable = async (host: string, i: string): Promise => { try { const res = await api(host, 'i', {}, i); return !res.error;