From c3b809cc72b150694189bb69920a7f9045808723 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 6 Sep 2022 13:29:33 +0300 Subject: [PATCH] lib image typing fix --- src/lib/image.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/image.ts b/src/lib/image.ts index 34a035e7..b394a236 100644 --- a/src/lib/image.ts +++ b/src/lib/image.ts @@ -6,9 +6,6 @@ export type ResizeOptions = { export function getResizedUrl(src: string, options: ResizeOptions): string { const n = options.n ?? 1 - if (!src || src === '') { - return null - } return `https://images.weserv.nl/?url=${src}&w=${options.width}&h=${options.height}&n=${n}` }