cleanup(check-https.ts)

This commit is contained in:
okayurisotto 2023-07-02 11:59:40 +09:00
parent 1abb06d2cc
commit 16ffe727cc

View File

@ -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');
}