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/chown.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/chown.ts')
-rw-r--r-- | cli/js/chown.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/chown.ts b/cli/js/chown.ts index 373d075b0..d56be3dc2 100644 --- a/cli/js/chown.ts +++ b/cli/js/chown.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"; /** * Change owner of a regular file or directory synchronously. Unix only at the moment. @@ -9,7 +8,7 @@ import * as dispatch from "./dispatch.ts"; * @param gid group id of the new owner */ export function chownSync(path: string, uid: number, gid: number): void { - sendSync(dispatch.OP_CHOWN, { path, uid, gid }); + sendSync("op_chown", { path, uid, gid }); } /** @@ -23,5 +22,5 @@ export async function chown( uid: number, gid: number ): Promise<void> { - await sendAsync(dispatch.OP_CHOWN, { path, uid, gid }); + await sendAsync("op_chown", { path, uid, gid }); } |