diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-10 12:39:42 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-09 23:39:42 -0400 |
commit | 46cbc6e0e96750cd2e3ba7e0d80bb9c48b66caf2 (patch) | |
tree | 89889584009ffd44cf01f2d5ee9e73e2a027c9ca /js/symlink.ts | |
parent | 35e3c06aed851f65ad0d561d73a447ab5765fc13 (diff) |
refactor: remove Deno.platform (#2895)
Diffstat (limited to 'js/symlink.ts')
-rw-r--r-- | js/symlink.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/symlink.ts b/js/symlink.ts index 4418e22ce..21ebb2f59 100644 --- a/js/symlink.ts +++ b/js/symlink.ts @@ -2,7 +2,7 @@ import { sendSync, sendAsync } from "./dispatch_json.ts"; import * as dispatch from "./dispatch.ts"; import * as util from "./util.ts"; -import { platform } from "./build.ts"; +import { build } from "./build.ts"; /** Synchronously creates `newname` as a symbolic link to `oldname`. The type * argument can be set to `dir` or `file` and is only available on Windows @@ -15,7 +15,7 @@ export function symlinkSync( newname: string, type?: string ): void { - if (platform.os === "win" && type) { + if (build.os === "win" && type) { return util.notImplemented(); } sendSync(dispatch.OP_SYMLINK, { oldname, newname }); @@ -32,7 +32,7 @@ export async function symlink( newname: string, type?: string ): Promise<void> { - if (platform.os === "win" && type) { + if (build.os === "win" && type) { return util.notImplemented(); } await sendAsync(dispatch.OP_SYMLINK, { oldname, newname }); |