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/realpath.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/realpath.ts')
-rw-r--r-- | cli/js/realpath.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/realpath.ts b/cli/js/realpath.ts index 502ced3b8..c425049f4 100644 --- a/cli/js/realpath.ts +++ b/cli/js/realpath.ts @@ -1,13 +1,12 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; /** Returns absolute normalized path with symbolic links resolved synchronously. * * const realPath = Deno.realpathSync("./some/path"); */ export function realpathSync(path: string): string { - return sendSync(dispatch.OP_REALPATH, { path }); + return sendSync("op_realpath", { path }); } /** Returns absolute normalized path with symbolic links resolved. @@ -15,5 +14,5 @@ export function realpathSync(path: string): string { * const realPath = await Deno.realpath("./some/path"); */ export async function realpath(path: string): Promise<string> { - return await sendAsync(dispatch.OP_REALPATH, { path }); + return await sendAsync("op_realpath", { path }); } |