From 1fff6f55c3ba98a10018c6d374795e612061e9b6 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 12 Jun 2020 20:23:38 +0100 Subject: refactor: Don't destructure the Deno namespace (#6268) --- std/encoding/_yaml/example/sample_document.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'std/encoding/_yaml/example/sample_document.ts') diff --git a/std/encoding/_yaml/example/sample_document.ts b/std/encoding/_yaml/example/sample_document.ts index da969d679..f66b3c417 100644 --- a/std/encoding/_yaml/example/sample_document.ts +++ b/std/encoding/_yaml/example/sample_document.ts @@ -3,10 +3,8 @@ import { parse } from "../../yaml.ts"; -const { readFileSync, cwd } = Deno; - (() => { - const yml = readFileSync(`${cwd()}/example/sample_document.yml`); + const yml = Deno.readFileSync(`${Deno.cwd()}/example/sample_document.yml`); const document = new TextDecoder().decode(yml); const obj = parse(document) as object; -- cgit v1.2.3