From 16ffe727ccf337af20da3360bc85314ee2abbdf5 Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Sun, 2 Jul 2023 11:59:40 +0900 Subject: [PATCH] cleanup(`check-https.ts`) --- packages/backend/src/misc/check-https.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/misc/check-https.ts b/packages/backend/src/misc/check-https.ts index b33f019973..612032fe97 100644 --- a/packages/backend/src/misc/check-https.ts +++ b/packages/backend/src/misc/check-https.ts @@ -1,4 +1,4 @@ -export function checkHttps(url: string) { - return url.startsWith('https://') || - (url.startsWith('http://') && process.env.NODE_ENV !== 'production'); +export function checkHttps(url: string): boolean { + return url.startsWith('https://') || + (url.startsWith('http://') && process.env.NODE_ENV !== 'production'); }