diff options
| author | Bert Belder <bertbelder@gmail.com> | 2019-02-25 21:35:50 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-26 00:35:50 -0500 |
| commit | 2ba7de2d04fb7fb5847b86d9c549f1cbf9c68d5a (patch) | |
| tree | ca85b441bcfcebd48ac1fb4e262d836215242167 /http/file_server.ts | |
| parent | a7bf19135352928c87b5e1068252e0490990cec3 (diff) | |
Change `import { x } from "deno"` to `const { x } = Deno` (denoland/deno_std#218)
Original: https://github.com/denoland/deno_std/commit/6063378a9284a48d42e37b4899f947c5c8bbf0b3
Diffstat (limited to 'http/file_server.ts')
| -rwxr-xr-x | http/file_server.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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"; |
