From 2ba7de2d04fb7fb5847b86d9c549f1cbf9c68d5a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 25 Feb 2019 21:35:50 -0800 Subject: Change `import { x } from "deno"` to `const { x } = Deno` (denoland/deno_std#218) Original: https://github.com/denoland/deno_std/commit/6063378a9284a48d42e37b4899f947c5c8bbf0b3 --- http/file_server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'http/file_server.ts') diff --git a/http/file_server.ts b/http/file_server.ts index 1f3fdd586..20ad45be6 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -6,13 +6,14 @@ // TODO Add tests like these: // https://github.com/indexzero/http-server/blob/master/test/http-server-test.js +const { ErrorKind, cwd, args, stat, readDir, open } = Deno; +import { DenoError } from "deno"; import { listenAndServe, ServerRequest, setContentLength, Response } from "./server.ts"; -import { cwd, DenoError, ErrorKind, args, stat, readDir, open } from "deno"; import { extname } from "../fs/path.ts"; import { contentType } from "../media_types/mod.ts"; -- cgit v1.2.3