diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/symlink.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/symlink.ts')
-rw-r--r-- | cli/js/symlink.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/symlink.ts b/cli/js/symlink.ts index 79a79c72c..de4d8a729 100644 --- a/cli/js/symlink.ts +++ b/cli/js/symlink.ts @@ -1,6 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; import * as util from "./util.ts"; import { build } from "./build.ts"; @@ -18,7 +17,7 @@ export function symlinkSync( if (build.os === "win" && type) { return util.notImplemented(); } - sendSync(dispatch.OP_SYMLINK, { oldname, newname }); + sendSync("op_symlink", { oldname, newname }); } /** Creates `newname` as a symbolic link to `oldname`. The type argument can be @@ -35,5 +34,5 @@ export async function symlink( if (build.os === "win" && type) { return util.notImplemented(); } - await sendAsync(dispatch.OP_SYMLINK, { oldname, newname }); + await sendAsync("op_symlink", { oldname, newname }); } |