From 1b1be2f9f8ac7c3cc4c1969c1a0fc7e2358238eb Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Mon, 31 Aug 2020 09:45:25 +0900 Subject: [PATCH] style: cosmetic changes --- api/services/appstore/[query].ts | 2 +- util/http.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/services/appstore/[query].ts b/api/services/appstore/[query].ts index 474fe53..44f184b 100644 --- a/api/services/appstore/[query].ts +++ b/api/services/appstore/[query].ts @@ -42,7 +42,7 @@ export default async function handler( price: app.price, viewURL: app.trackViewUrl, })); - send(res, { result: apps || [] }); + send(res, { result: apps }); } catch (err) { sendError(res, err); } diff --git a/util/http.ts b/util/http.ts index 9f85da3..48b7354 100644 --- a/util/http.ts +++ b/util/http.ts @@ -15,7 +15,9 @@ export function fetch( url: string, method: HttpMethod = 'HEAD' ): Promise { - return nodeFetch(url, { method: method }); + return nodeFetch(url, { + method: method, + }); } export function send(res: NowResponse, data: object): void {