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 --- prettier/main.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'prettier/main.ts') diff --git a/prettier/main.ts b/prettier/main.ts index 435206dcd..70c225086 100755 --- a/prettier/main.ts +++ b/prettier/main.ts @@ -2,16 +2,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // This script formats the given source files. If the files are omitted, it // formats the all files in the repository. -import { - args, - platform, - readAll, - lstat, - exit, - run, - readFile, - writeFile -} from "deno"; +const { args, platform, readAll, lstat, exit, run, readFile, writeFile } = Deno; import { xrun } from "./util.ts"; import { parse } from "../flags/mod.ts"; import { prettier, prettierPlugins } from "./prettier.ts"; -- cgit v1.2.3