summaryrefslogtreecommitdiff
path: root/http/file_server.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-12 14:51:51 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-12 01:51:51 -0400
commitf124e645263099132025256df8594ca0dc5cc83a (patch)
tree07f0f99b99e55f431f71f4463aa912ab96405f61 /http/file_server.ts
parent4a97a6e67e93cdbcecde3d9b99092f15d3dfd803 (diff)
fix: eslint errors (denoland/deno_std#265)
Original: https://github.com/denoland/deno_std/commit/61af419bbc5717c2e2552050aacb20ef1b17480b
Diffstat (limited to 'http/file_server.ts')
-rwxr-xr-xhttp/file_server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/file_server.ts b/http/file_server.ts
index 659e9ba56..83de37364 100755
--- a/http/file_server.ts
+++ b/http/file_server.ts
@@ -188,7 +188,7 @@ async function serveDir(
async function serveFallback(req: ServerRequest, e: Error): Promise<Response> {
if (
e instanceof Deno.DenoError &&
- (e as Deno.DenoError<any>).kind === ErrorKind.NotFound
+ (e as Deno.DenoError<Deno.ErrorKind.NotFound>).kind === ErrorKind.NotFound
) {
return {
status: 404,