mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
build: fix linting problems (#8431)
This commit is contained in:
parent
d5772a937b
commit
b55cc51351
1 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,7 @@ Deno.test("toWritableCheck", async function (): Promise<void> {
|
|||
const chunks: string[] = ["hello", "deno", "land"];
|
||||
const decoder = new TextDecoder();
|
||||
|
||||
// deno-lint-ignore require-await
|
||||
async function write(p: Uint8Array): Promise<number> {
|
||||
written.push(decoder.decode(p));
|
||||
return p.length;
|
||||
|
@ -165,6 +166,7 @@ Deno.test("toReadableCheck", async function (): Promise<void> {
|
|||
const readChunks: string[] = [];
|
||||
const encoder = new TextEncoder();
|
||||
|
||||
// deno-lint-ignore require-await
|
||||
async function read(p: Uint8Array): Promise<number | null> {
|
||||
const chunk = chunks.shift();
|
||||
if (chunk === undefined) {
|
||||
|
|
Loading…
Reference in a new issue