mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -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 chunks: string[] = ["hello", "deno", "land"];
|
||||||
const decoder = new TextDecoder();
|
const decoder = new TextDecoder();
|
||||||
|
|
||||||
|
// deno-lint-ignore require-await
|
||||||
async function write(p: Uint8Array): Promise<number> {
|
async function write(p: Uint8Array): Promise<number> {
|
||||||
written.push(decoder.decode(p));
|
written.push(decoder.decode(p));
|
||||||
return p.length;
|
return p.length;
|
||||||
|
@ -165,6 +166,7 @@ Deno.test("toReadableCheck", async function (): Promise<void> {
|
||||||
const readChunks: string[] = [];
|
const readChunks: string[] = [];
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
|
|
||||||
|
// deno-lint-ignore require-await
|
||||||
async function read(p: Uint8Array): Promise<number | null> {
|
async function read(p: Uint8Array): Promise<number | null> {
|
||||||
const chunk = chunks.shift();
|
const chunk = chunks.shift();
|
||||||
if (chunk === undefined) {
|
if (chunk === undefined) {
|
||||||
|
|
Loading…
Reference in a new issue