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/util/FileStorage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cdn/src/util/FileStorage.ts') diff --git a/cdn/src/util/FileStorage.ts b/cdn/src/util/FileStorage.ts index 84ecf556..376ce007 100644 --- a/cdn/src/util/FileStorage.ts +++ b/cdn/src/util/FileStorage.ts @@ -11,7 +11,7 @@ import ExifTransformer = require("exif-be-gone"); function getPath(path: string) { // STORAGE_LOCATION has a default value in start.ts const root = process.env.STORAGE_LOCATION || "../"; - var filename = join(root, path); + let filename = join(root, path); if (path.indexOf("\0") !== -1 || !filename.startsWith(root)) throw new Error("invalid path"); -- cgit 1.5.1