From e536fb2f72e4883979b451b60b12c44f5f94313c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 18 Jul 2022 18:30:53 +0200 Subject: replace all var with let (reduces warnings) --- cdn/src/routes/attachments.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cdn/src/routes/attachments.ts') diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts index ae50bc48..33801932 100644 --- a/cdn/src/routes/attachments.ts +++ b/cdn/src/routes/attachments.ts @@ -35,8 +35,8 @@ router.post( Config.get()?.cdn.endpointPublic || "http://localhost:3003"; await storage.set(path, buffer); - var width; - var height; + let width; + let height; if (mimetype.includes("image")) { const dimensions = imageSize(buffer); if (dimensions) { -- cgit 1.5.1