summaryrefslogtreecommitdiff
path: root/std/http/file_server.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-16 10:22:16 +0100
committerGitHub <noreply@github.com>2020-03-16 10:22:16 +0100
commit1edb20b399944c6eec1d7c555ab170b6dd276840 (patch)
tree00be05e4ff944cc1db67a44d8f9a47f197c7e7bc /std/http/file_server.ts
parent70434b5bfba701f9de2221b64ee40262c5370ae0 (diff)
refactor: add no-return-await lint rule (#4384)
Diffstat (limited to 'std/http/file_server.ts')
-rwxr-xr-xstd/http/file_server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/http/file_server.ts b/std/http/file_server.ts
index a259acb3c..18a68aa49 100755
--- a/std/http/file_server.ts
+++ b/std/http/file_server.ts
@@ -126,7 +126,7 @@ async function serveDir(
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);
+ return serveFile(req, filePath);
}
// Yuck!
let mode = null;