diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/js/files.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/files.ts')
-rw-r--r-- | cli/js/files.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/files.ts b/cli/js/files.ts index 3afcb4878..e9f12a489 100644 --- a/cli/js/files.ts +++ b/cli/js/files.ts @@ -23,7 +23,7 @@ export type { OpenOptions } from "./ops/fs/open.ts"; export function openSync( path: string | URL, - options: OpenOptions = { read: true } + options: OpenOptions = { read: true }, ): File { checkOpenOptions(options); const rid = opOpenSync(path, options); @@ -32,7 +32,7 @@ export function openSync( export async function open( path: string | URL, - options: OpenOptions = { read: true } + options: OpenOptions = { read: true }, ): Promise<File> { checkOpenOptions(options); const rid = await opOpen(path, options); @@ -163,7 +163,7 @@ function checkOpenOptions(options: OpenOptions): void { if (createOrCreateNewWithoutWriteOrAppend) { throw new Error( - "'create' or 'createNew' options require 'write' or 'append' option" + "'create' or 'createNew' options require 'write' or 'append' option", ); } } |