mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +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
|
@ -55,7 +55,7 @@ export async function copy(
|
|||
dst: Writer,
|
||||
options?: {
|
||||
bufSize?: number;
|
||||
}
|
||||
},
|
||||
): Promise<number> {
|
||||
let n = 0;
|
||||
const bufSize = options?.bufSize ?? DEFAULT_BUFFER_SIZE;
|
||||
|
@ -80,7 +80,7 @@ export async function* iter(
|
|||
r: Reader,
|
||||
options?: {
|
||||
bufSize?: number;
|
||||
}
|
||||
},
|
||||
): AsyncIterableIterator<Uint8Array> {
|
||||
const bufSize = options?.bufSize ?? DEFAULT_BUFFER_SIZE;
|
||||
const b = new Uint8Array(bufSize);
|
||||
|
@ -98,7 +98,7 @@ export function* iterSync(
|
|||
r: ReaderSync,
|
||||
options?: {
|
||||
bufSize?: number;
|
||||
}
|
||||
},
|
||||
): IterableIterator<Uint8Array> {
|
||||
const bufSize = options?.bufSize ?? DEFAULT_BUFFER_SIZE;
|
||||
const b = new Uint8Array(bufSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue