diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-03-16 10:22:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 10:22:16 +0100 |
commit | 1edb20b399944c6eec1d7c555ab170b6dd276840 (patch) | |
tree | 00be05e4ff944cc1db67a44d8f9a47f197c7e7bc /std/http/file_server.ts | |
parent | 70434b5bfba701f9de2221b64ee40262c5370ae0 (diff) |
refactor: add no-return-await lint rule (#4384)
Diffstat (limited to 'std/http/file_server.ts')
-rwxr-xr-x | std/http/file_server.ts | 2 |
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; |