From 96fe2d10a4da0521b7cd72d90fd42121f9311978 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 6 Oct 2019 01:02:34 +0900 Subject: Update eslint and @typescript-eslint (denoland/deno_std#621) Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e --- http/file_server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/file_server.ts') diff --git a/http/file_server.ts b/http/file_server.ts index dfcd40cdd..77d0cf748 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -150,7 +150,7 @@ async function serveDir( const fileInfos = await readDir(dirPath); for (const fileInfo of fileInfos) { const filePath = posix.join(dirPath, fileInfo.name); - let fileUrl = posix.join(dirUrl, fileInfo.name); + const fileUrl = posix.join(dirUrl, fileInfo.name); if (fileInfo.name === "index.html" && fileInfo.isFile()) { // in case index.html as dir... return await serveFile(req, filePath); -- cgit v1.2.3