Use dprint for internal formatting (#6682)

This commit is contained in:
David Sherret 2020-07-14 15:24:17 -04:00 committed by GitHub
parent 9eca71caa1
commit cde4dbb351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
378 changed files with 3116 additions and 3121 deletions

View file

@ -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",
);
}
}