mirror of
https://github.com/denoland/deno.git
synced 2025-10-05 00:20:24 +00:00
Use dprint for internal formatting (#6682)
This commit is contained in:
parent
9eca71caa1
commit
cde4dbb351
378 changed files with 3116 additions and 3121 deletions
|
@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue