1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 12:30:32 +09:00

style: cosmetic changes

This commit is contained in:
uetchy 2020-08-31 09:45:25 +09:00 committed by uetchy
parent e4736ba170
commit 1b1be2f9f8
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export default async function handler(
price: app.price, price: app.price,
viewURL: app.trackViewUrl, viewURL: app.trackViewUrl,
})); }));
send(res, { result: apps || [] }); send(res, { result: apps });
} catch (err) { } catch (err) {
sendError(res, err); sendError(res, err);
} }

View File

@ -15,7 +15,9 @@ export function fetch(
url: string, url: string,
method: HttpMethod = 'HEAD' method: HttpMethod = 'HEAD'
): Promise<Response> { ): Promise<Response> {
return nodeFetch(url, { method: method }); return nodeFetch(url, {
method: method,
});
} }
export function send(res: NowResponse, data: object): void { export function send(res: NowResponse, data: object): void {